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, wrapExpressionFactory
public BeanManagerProxy(BeanManagerImpl manager)
public BeanManagerImpl delegate()
delegate
in class ForwardingBeanManager
public Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> ctx)
BeanManager
Obtains a contextual reference for a certain bean and a certain bean type of the bean.
getReference
in interface BeanManager
getReference
in class ForwardingBeanManager
bean
- 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)
BeanManager
Obtains an injectable reference for a certain injection point.
getInjectableReference
in interface BeanManager
getInjectableReference
in class ForwardingBeanManager
ij
- 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)
BeanManager
getBeans
in interface BeanManager
getBeans
in class ForwardingBeanManager
beanType
- the required bean typequalifiers
- the required qualifierspublic Set<Bean<?>> getBeans(String name)
BeanManager
getBeans
in interface BeanManager
getBeans
in class ForwardingBeanManager
name
- the EL namepublic Bean<?> getPassivationCapableBean(String id)
BeanManager
PassivationCapable
bean with the given identifier.getPassivationCapableBean
in interface BeanManager
getPassivationCapableBean
in class ForwardingBeanManager
id
- 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)
BeanManager
resolve
in interface BeanManager
resolve
in class ForwardingBeanManager
X
- a common type of the beansbeans
- a set of beans of the given typepublic void validate(InjectionPoint injectionPoint)
BeanManager
validate
in interface BeanManager
validate
in class ForwardingBeanManager
injectionPoint
- the injection point to validatepublic <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers)
BeanManager
resolveObserverMethods
in interface BeanManager
resolveObserverMethods
in class ForwardingBeanManager
T
- the type of the eventevent
- the event objectqualifiers
- the event qualifierspublic List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
BeanManager
resolveDecorators
in interface BeanManager
resolveDecorators
in class ForwardingBeanManager
types
- the set of bean types of the decorated beanqualifiers
- the qualifiers declared by the decorated beanpublic List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
BeanManager
resolveInterceptors
in interface BeanManager
resolveInterceptors
in class ForwardingBeanManager
type
- the type of the interceptioninterceptorBindings
- the interceptor bindingsprotected Object readResolve() throws ObjectStreamException
ObjectStreamException
public static BeanManagerImpl unwrap(BeanManager manager)
Copyright © 2013 Seam Framework. All Rights Reserved.