public class BeanManagerProxy extends ForwardingBeanManager implements WeldManager
BeanManagerImpl.| Constructor and Description |
|---|
BeanManagerProxy(BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
WeldManager |
createActivity()
Create a new child activity.
|
<T> WeldCreationalContext<T> |
createCreationalContext(Contextual<T> contextual)
Obtain an instance of a
CreationalContext for the given
contextual type, or for a non-contextual object. |
<T> InjectionTarget<T> |
createInjectionTarget(EjbDescriptor<T> descriptor)
The injection target for the given EJB, or null if Weld was not given this descriptor in the deployment.
|
<T> WeldInjectionTargetBuilder<T> |
createInjectionTargetBuilder(AnnotatedType<T> type)
Returns a new instance of
WeldInjectionTargetBuilder which can be used to create a new WeldInjectionTarget for the specified type. |
BeanManagerImpl |
delegate() |
<X> InjectionTarget<X> |
fireProcessInjectionTarget(AnnotatedType<X> type)
Fire a ProcessInjectionTarget event for the given type.
|
<X> InjectionTarget<X> |
fireProcessInjectionTarget(AnnotatedType<X> annotatedType,
InjectionTarget<X> injectionTarget)
Fire a ProcessInjectionTarget event for the given type.
|
<T> Bean<T> |
getBean(EjbDescriptor<T> descriptor)
Get the Bean object for the given EJB, or null if Weld was not given this descriptor in the deployment.
|
java.util.Set<Bean<?>> |
getBeans(java.lang.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.
|
java.util.Set<Bean<?>> |
getBeans(java.lang.reflect.Type beanType,
java.lang.annotation.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.
|
WeldManager |
getCurrent() |
<T> EjbDescriptor<T> |
getEjbDescriptor(java.lang.String ejbName)
Get the EjbDescriptor for the given ejb name
|
java.lang.String |
getId()
The ID of the manager, identical to the ID provided by the BDA
|
java.lang.Object |
getInjectableReference(InjectionPoint ij,
CreationalContext<?> ctx)
Obtains an injectable reference for a certain injection point.
|
<T> WeldInjectionTargetFactory<T> |
getInjectionTargetFactory(AnnotatedType<T> annotatedType)
An implementation of
InjectionTargetFactory that provides container created InjectionTarget instances. |
Bean<?> |
getPassivationCapableBean(BeanIdentifier identifier) |
Bean<?> |
getPassivationCapableBean(java.lang.String id)
Returns the
PassivationCapable bean with the given identifier. |
java.lang.Object |
getReference(Bean<?> bean,
java.lang.reflect.Type beanType,
CreationalContext<?> ctx)
Obtains a contextual reference for a certain bean and a certain bean type of the bean.
|
ServiceRegistry |
getServices()
Get the services registered for this manager
|
Instance<java.lang.Object> |
instance() |
protected java.lang.Object |
readResolve() |
<X> Bean<? extends X> |
resolve(java.util.Set<Bean<? extends X>> beans)
Apply the ambiguous dependency resolution rules to a set of beans.
|
java.util.List<Decorator<?>> |
resolveDecorators(java.util.Set<java.lang.reflect.Type> types,
java.lang.annotation.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.
|
java.util.List<Interceptor<?>> |
resolveInterceptors(InterceptionType type,
java.lang.annotation.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> java.util.Set<ObserverMethod<? super T>> |
resolveObserverMethods(T event,
java.lang.annotation.Annotation... qualifiers)
Return the set of observers for an event.
|
WeldManager |
setCurrent(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
Associate an activity with the current context for a normal scope
|
BeanManagerImpl |
unwrap() |
static BeanManagerImpl |
unwrap(BeanManager manager) |
void |
validate(InjectionPoint injectionPoint)
Validate a certain injection point.
|
areInterceptorBindingsEquivalent, areQualifiersEquivalent, createAnnotatedType, createBean, createBean, createBeanAttributes, createBeanAttributes, createInjectionPoint, createInjectionPoint, createInjectionTarget, equals, fireEvent, getContext, getELResolver, getExtension, getInterceptorBindingDefinition, getInterceptorBindingHashCode, getProducerFactory, getProducerFactory, getQualifierHashCode, getStereotypeDefinition, hashCode, isInterceptorBinding, isNormalScope, isPassivatingScope, isQualifier, isScope, isStereotype, toString, wrapExpressionFactoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitareInterceptorBindingsEquivalent, areQualifiersEquivalent, createAnnotatedType, createBean, createBean, createBeanAttributes, createBeanAttributes, createInjectionPoint, createInjectionPoint, createInjectionTarget, fireEvent, getContext, getELResolver, getExtension, getInterceptorBindingDefinition, getInterceptorBindingHashCode, getProducerFactory, getProducerFactory, getQualifierHashCode, getStereotypeDefinition, isInterceptorBinding, isNormalScope, isPassivatingScope, isQualifier, isScope, isStereotype, wrapExpressionFactorypublic BeanManagerProxy(BeanManagerImpl manager)
public BeanManagerImpl delegate()
delegate in class ForwardingBeanManagerpublic java.lang.Object getReference(Bean<?> bean, java.lang.reflect.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 java.lang.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 java.util.Set<Bean<?>> getBeans(java.lang.reflect.Type beanType, java.lang.annotation.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 java.util.Set<Bean<?>> getBeans(java.lang.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(java.lang.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(java.util.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> java.util.Set<ObserverMethod<? super T>> resolveObserverMethods(T event, java.lang.annotation.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 java.util.List<Decorator<?>> resolveDecorators(java.util.Set<java.lang.reflect.Type> types, java.lang.annotation.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 java.util.List<Interceptor<?>> resolveInterceptors(InterceptionType type, java.lang.annotation.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 bindingspublic WeldManager createActivity()
WeldManagercreateActivity in interface WeldManagerpublic WeldManager setCurrent(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
WeldManagersetCurrent in interface WeldManagerscopeType - the scope to associate the activity withpublic <T> InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor)
WeldManager#fireProcessInjectionTarget()
must be used to obtain an InjectionTarget for non-contextual EJB injection.createInjectionTarget in interface WeldManagerpublic <T> Bean<T> getBean(EjbDescriptor<T> descriptor)
WeldManagergetBean in interface WeldManagerpublic <T> EjbDescriptor<T> getEjbDescriptor(java.lang.String ejbName)
WeldManagergetEjbDescriptor in interface WeldManagerpublic ServiceRegistry getServices()
WeldManagergetServices in interface WeldManagerpublic WeldManager getCurrent()
getCurrent in interface WeldManagerWeldManager that corresponds to the current activitypublic <X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> type)
WeldManagerfireProcessInjectionTarget in interface WeldManagerpublic <X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> annotatedType, InjectionTarget<X> injectionTarget)
WeldManagerfireProcessInjectionTarget in interface WeldManagerpublic java.lang.String getId()
WeldManagergetId in interface WeldManagerpublic Instance<java.lang.Object> instance()
instance in interface WeldManagerpublic Bean<?> getPassivationCapableBean(BeanIdentifier identifier)
getPassivationCapableBean in interface WeldManagerpublic <T> WeldInjectionTargetBuilder<T> createInjectionTargetBuilder(AnnotatedType<T> type)
WeldManagerWeldInjectionTargetBuilder which can be used to create a new WeldInjectionTarget for the specified type.createInjectionTargetBuilder in interface WeldManagertype - the specified typeWeldInjectionTargetBuilder instance for the specified typepublic <T> WeldInjectionTargetFactory<T> getInjectionTargetFactory(AnnotatedType<T> annotatedType)
BeanManager
An implementation of InjectionTargetFactory that provides container created InjectionTarget instances.
This factory can be wrapped to add behavior to container created injection targets.
getInjectionTargetFactory in interface BeanManagergetInjectionTargetFactory in interface WeldManagergetInjectionTargetFactory in class ForwardingBeanManagerannotatedType - the annotated type to create the injection target factory forInjectionTargetFactorypublic <T> WeldCreationalContext<T> createCreationalContext(Contextual<T> contextual)
BeanManagerCreationalContext for the given
contextual type, or for a non-contextual object.createCreationalContext in interface BeanManagercreateCreationalContext in interface WeldManagercreateCreationalContext in class ForwardingBeanManagercontextual - the Contextual, or a null value in the case of a non-contextual
objectCreationalContextprotected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic static BeanManagerImpl unwrap(BeanManager manager)
public BeanManagerImpl unwrap()
unwrap in interface WeldManagerCopyright © 2014. All Rights Reserved.