public class BeanManagerProxy extends ForwardingBeanManager
BeanManagerImpl.| Constructor and Description |
|---|
BeanManagerProxy(BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
BeanManagerImpl |
delegate() |
Set<Bean<?>> |
getBeans(String name)
Return the set of beans which have the given EL name and are available for injection in the module or library containing
the class into which the BeanManager was injected or the Java EE component from whose JNDI environment namespace
the BeanManager was obtained, according to the rules of EL name resolution.
|
Set<Bean<?>> |
getBeans(Type beanType,
Annotation... qualifiers)
Return the set of beans which have the given required type and qualifiers and are available for injection in the module
or library containing the class into which the BeanManager was injected or the Java EE component from whose JNDI
environment namespace the BeanManager was obtained, according to the rules of typesafe resolution.
|
Object |
getInjectableReference(InjectionPoint ij,
CreationalContext<?> ctx)
Obtains an injectable reference for a certain injection point.
|
Bean<?> |
getPassivationCapableBean(String id)
Returns the
PassivationCapable bean with the given identifier. |
Object |
getReference(Bean<?> bean,
Type beanType,
CreationalContext<?> ctx)
Obtains a contextual reference for a certain bean and a certain bean type of the bean.
|
protected Object |
readResolve() |
<X> Bean<? extends X> |
resolve(Set<Bean<? extends X>> beans)
Apply the ambiguous dependency resolution rules to a set of beans.
|
List<Decorator<?>> |
resolveDecorators(Set<Type> types,
Annotation... qualifiers)
Return an ordered list of decorators for a set of bean types and a set of qualifiers and which are
enabled in the module or library containing the class into which the BeanManager was injected or the Java EE
component from whose JNDI environment namespace the BeanManager was obtained.
|
List<Interceptor<?>> |
resolveInterceptors(InterceptionType type,
Annotation... interceptorBindings)
Return an ordered list of enabled interceptors for a set of interceptor bindings and a type of
interception and which are enabled in the module or library containing the class into which the BeanManager was
injected or the Java EE component from whose JNDI environment namespace the BeanManager was obtained.
|
<T> Set<ObserverMethod<? super T>> |
resolveObserverMethods(T event,
Annotation... qualifiers)
Return the set of observers for an event.
|
static BeanManagerImpl |
unwrap(BeanManager manager) |
void |
validate(InjectionPoint injectionPoint)
Validate a certain injection point.
|
areInterceptorBindingsEquivalent, areQualifiersEquivalent, createAnnotatedType, createBean, createBean, createBeanAttributes, createBeanAttributes, createCreationalContext, createInjectionPoint, createInjectionPoint, createInjectionTarget, equals, fireEvent, getContext, getELResolver, getExtension, getInjectionTargetFactory, getInterceptorBindingDefinition, getInterceptorBindingHashCode, getProducerFactory, getProducerFactory, getQualifierHashCode, getStereotypeDefinition, hashCode, isInterceptorBinding, isNormalScope, isPassivatingScope, isQualifier, isScope, isStereotype, toString, wrapExpressionFactorypublic BeanManagerProxy(BeanManagerImpl manager)
public BeanManagerImpl delegate()
delegate in class ForwardingBeanManagerpublic Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> ctx)
BeanManagerObtains a contextual reference for a certain bean and a certain bean type of the bean.
getReference in interface BeanManagergetReference in class ForwardingBeanManagerbean - the Bean object representing the beanbeanType - a bean type that must be implemented by any client proxy that is returnedctx - a CreationalContext that may be used to destroy any object with scope
Dependent that is createdpublic Object getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx)
BeanManagerObtains an injectable reference for a certain injection point.
getInjectableReference in interface BeanManagergetInjectableReference in class ForwardingBeanManagerij - the target injection pointctx - a CreationalContext that may be used to destroy any object with scope
Dependent that is createdpublic Set<Bean<?>> getBeans(Type beanType, Annotation... qualifiers)
BeanManagerAfterBeanDiscovery event observer,
this method will only return beans discovered by the container before the AfterBeanDiscovery event is fired.getBeans in interface BeanManagergetBeans in class ForwardingBeanManagerbeanType - the required bean typequalifiers - the required qualifierspublic Set<Bean<?>> getBeans(String name)
BeanManagerAfterBeanDiscovery event observer,
this method will only return beans discovered by the container before the AfterBeanDiscovery event is fired.getBeans in interface BeanManagergetBeans in class ForwardingBeanManagername - the EL namepublic Bean<?> getPassivationCapableBean(String id)
BeanManagerPassivationCapable bean with the given identifier.
Note that when called during invocation of an AfterBeanDiscovery event observer,
this method will only return beans discovered by the container before the AfterBeanDiscovery event is fired.getPassivationCapableBean in interface BeanManagergetPassivationCapableBean in class ForwardingBeanManagerid - the identifierBean that implements PassivationCapable and has the given
identifier, or a null value if there is no such beanpublic <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans)
BeanManagerAfterBeanDiscovery event observer,
this method will only return beans discovered by the container before the AfterBeanDiscovery event is fired.resolve in interface BeanManagerresolve in class ForwardingBeanManagerX - a common type of the beansbeans - a set of beans of the given typepublic void validate(InjectionPoint injectionPoint)
BeanManagerAfterBeanDiscovery event observer,
this method will only validate injection points discovered by the container before the AfterBeanDiscovery
event is fired.validate in interface BeanManagervalidate in class ForwardingBeanManagerinjectionPoint - the injection point to validatepublic <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers)
BeanManagerAfterBeanDiscovery event observer,
this method will only return observers discovered by the container before the AfterBeanDiscovery event is fired.resolveObserverMethods in interface BeanManagerresolveObserverMethods in class ForwardingBeanManagerT - the type of the eventevent - the event objectqualifiers - the event qualifierspublic List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
BeanManagerAfterBeanDiscovery event observer,
this method will only return decorators discovered by the container before the AfterBeanDiscovery event is fired.resolveDecorators in interface BeanManagerresolveDecorators in class ForwardingBeanManagertypes - the set of bean types of the decorated beanqualifiers - the qualifiers declared by the decorated beanpublic List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
BeanManagerAfterBeanDiscovery event observer,
this method will only return interceptors discovered by the container before the AfterBeanDiscovery event is
fired.resolveInterceptors in interface BeanManagerresolveInterceptors in class ForwardingBeanManagertype - the type of the interceptioninterceptorBindings - the interceptor bindingsprotected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic static BeanManagerImpl unwrap(BeanManager manager)
Copyright © 2014 Seam Framework. All Rights Reserved.