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> javax.enterprise.inject.spi.AnnotatedType<T> |
createAnnotatedType(Class<T> type,
String id)
Obtain an
AnnotatedType that may be used to read the annotations of the given class or interface. |
<T> WeldCreationalContext<T> |
createCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual) |
<T> javax.enterprise.inject.spi.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(javax.enterprise.inject.spi.AnnotatedType<T> type)
Returns a new instance of
WeldInjectionTargetBuilder which can be used to create a new WeldInjectionTarget for the specified type. |
BeanManagerImpl |
delegate() |
<T> void |
disposeAnnotatedType(Class<T> type,
String id)
Dispose the
AnnotatedType created for the identified type. |
<X> javax.enterprise.inject.spi.InjectionTarget<X> |
fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> type)
Fire a ProcessInjectionTarget event for the given type.
|
<X> javax.enterprise.inject.spi.InjectionTarget<X> |
fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
javax.enterprise.inject.spi.InjectionTarget<X> injectionTarget)
Fire a ProcessInjectionTarget event for the given type.
|
<T> javax.enterprise.inject.spi.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.
|
Set<javax.enterprise.inject.spi.Bean<?>> |
getBeans(String name) |
Set<javax.enterprise.inject.spi.Bean<?>> |
getBeans(Type beanType,
Annotation... qualifiers) |
WeldManager |
getCurrent() |
<T> EjbDescriptor<T> |
getEjbDescriptor(String ejbName)
Get the EjbDescriptor for the given EJB name
|
String |
getId()
The ID of the manager, identical to the ID provided by the BDA
|
Object |
getInjectableReference(javax.enterprise.inject.spi.InjectionPoint ij,
javax.enterprise.context.spi.CreationalContext<?> ctx) |
<T> WeldInjectionTargetFactory<T> |
getInjectionTargetFactory(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType) |
javax.enterprise.inject.spi.Bean<?> |
getPassivationCapableBean(BeanIdentifier identifier) |
javax.enterprise.inject.spi.Bean<?> |
getPassivationCapableBean(String id) |
Object |
getReference(javax.enterprise.inject.spi.Bean<?> bean,
Type beanType,
javax.enterprise.context.spi.CreationalContext<?> ctx) |
ServiceRegistry |
getServices()
Get the services registered for this manager
|
javax.enterprise.inject.Instance<Object> |
instance() |
protected Object |
readResolve() |
<X> javax.enterprise.inject.spi.Bean<? extends X> |
resolve(Set<javax.enterprise.inject.spi.Bean<? extends X>> beans) |
List<javax.enterprise.inject.spi.Decorator<?>> |
resolveDecorators(Set<Type> types,
Annotation... qualifiers) |
List<javax.enterprise.inject.spi.Interceptor<?>> |
resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type,
Annotation... interceptorBindings) |
<T> Set<javax.enterprise.inject.spi.ObserverMethod<? super T>> |
resolveObserverMethods(T event,
Annotation... qualifiers) |
WeldManager |
setCurrent(Class<? extends Annotation> scopeType)
Associate an activity with the current context for a normal scope
|
static BeanManagerImpl |
tryUnwrap(Object instance) |
BeanManagerImpl |
unwrap() |
static BeanManagerImpl |
unwrap(javax.enterprise.inject.spi.BeanManager manager) |
void |
validate(javax.enterprise.inject.spi.InjectionPoint injectionPoint) |
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 Object getReference(javax.enterprise.inject.spi.Bean<?> bean, Type beanType, javax.enterprise.context.spi.CreationalContext<?> ctx)
getReference in interface javax.enterprise.inject.spi.BeanManagergetReference in class ForwardingBeanManagerpublic Object getInjectableReference(javax.enterprise.inject.spi.InjectionPoint ij, javax.enterprise.context.spi.CreationalContext<?> ctx)
getInjectableReference in interface javax.enterprise.inject.spi.BeanManagergetInjectableReference in class ForwardingBeanManagerpublic Set<javax.enterprise.inject.spi.Bean<?>> getBeans(Type beanType, Annotation... qualifiers)
getBeans in interface javax.enterprise.inject.spi.BeanManagergetBeans in class ForwardingBeanManagerpublic Set<javax.enterprise.inject.spi.Bean<?>> getBeans(String name)
getBeans in interface javax.enterprise.inject.spi.BeanManagergetBeans in class ForwardingBeanManagerpublic javax.enterprise.inject.spi.Bean<?> getPassivationCapableBean(String id)
getPassivationCapableBean in interface javax.enterprise.inject.spi.BeanManagergetPassivationCapableBean in class ForwardingBeanManagerpublic <X> javax.enterprise.inject.spi.Bean<? extends X> resolve(Set<javax.enterprise.inject.spi.Bean<? extends X>> beans)
resolve in interface javax.enterprise.inject.spi.BeanManagerresolve in class ForwardingBeanManagerpublic void validate(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
validate in interface javax.enterprise.inject.spi.BeanManagervalidate in class ForwardingBeanManagerpublic <T> Set<javax.enterprise.inject.spi.ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers)
resolveObserverMethods in interface javax.enterprise.inject.spi.BeanManagerresolveObserverMethods in class ForwardingBeanManagerpublic List<javax.enterprise.inject.spi.Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
resolveDecorators in interface javax.enterprise.inject.spi.BeanManagerresolveDecorators in class ForwardingBeanManagerpublic List<javax.enterprise.inject.spi.Interceptor<?>> resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type, Annotation... interceptorBindings)
resolveInterceptors in interface javax.enterprise.inject.spi.BeanManagerresolveInterceptors in class ForwardingBeanManagerpublic WeldManager createActivity()
WeldManagercreateActivity in interface WeldManagerpublic WeldManager setCurrent(Class<? extends Annotation> scopeType)
WeldManagersetCurrent in interface WeldManagerscopeType - the scope to associate the activity withpublic <T> javax.enterprise.inject.spi.InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor)
WeldManagerWeldManager.fireProcessInjectionTarget(AnnotatedType) and
WeldManager.fireProcessInjectionTarget(AnnotatedType, InjectionTarget)
must be used to obtain an InjectionTarget for non-contextual EJB injection.createInjectionTarget in interface WeldManagerT - the type of the EJBdescriptor - the given EJB descriptorpublic <T> javax.enterprise.inject.spi.Bean<T> getBean(EjbDescriptor<T> descriptor)
WeldManagergetBean in interface WeldManagerT - the type of the beandescriptor - the given EJB descriptorpublic <T> EjbDescriptor<T> getEjbDescriptor(String ejbName)
WeldManagergetEjbDescriptor in interface WeldManagerT - the type of the EJBejbName - the given EJB namepublic ServiceRegistry getServices()
WeldManagergetServices in interface WeldManagerpublic WeldManager getCurrent()
getCurrent in interface WeldManagerWeldManager that corresponds to the current activitypublic <X> javax.enterprise.inject.spi.InjectionTarget<X> fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> type)
WeldManagerfireProcessInjectionTarget in interface WeldManagerX - the typetype - the typepublic <X> javax.enterprise.inject.spi.InjectionTarget<X> fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType,
javax.enterprise.inject.spi.InjectionTarget<X> injectionTarget)
WeldManagerfireProcessInjectionTarget in interface WeldManagerX - the typeannotatedType - the typeinjectionTarget - the injection targetpublic String getId()
WeldManagergetId in interface WeldManagerpublic javax.enterprise.inject.Instance<Object> instance()
instance in interface WeldManagerpublic javax.enterprise.inject.spi.Bean<?> getPassivationCapableBean(BeanIdentifier identifier)
getPassivationCapableBean in interface WeldManagerpublic <T> WeldInjectionTargetBuilder<T> createInjectionTargetBuilder(javax.enterprise.inject.spi.AnnotatedType<T> type)
WeldManagerWeldInjectionTargetBuilder which can be used to create a new WeldInjectionTarget for the specified type.createInjectionTargetBuilder in interface WeldManagerT - the typetype - the specified typeWeldInjectionTargetBuilder instance for the specified typepublic <T> WeldInjectionTargetFactory<T> getInjectionTargetFactory(javax.enterprise.inject.spi.AnnotatedType<T> annotatedType)
getInjectionTargetFactory in interface javax.enterprise.inject.spi.BeanManagergetInjectionTargetFactory in interface WeldManagergetInjectionTargetFactory in class ForwardingBeanManagerpublic <T> WeldCreationalContext<T> createCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
createCreationalContext in interface javax.enterprise.inject.spi.BeanManagercreateCreationalContext in interface WeldManagercreateCreationalContext in class ForwardingBeanManagerprotected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic static BeanManagerImpl unwrap(javax.enterprise.inject.spi.BeanManager manager)
public static BeanManagerImpl tryUnwrap(Object instance)
public BeanManagerImpl unwrap()
unwrap in interface WeldManagerpublic <T> javax.enterprise.inject.spi.AnnotatedType<T> createAnnotatedType(Class<T> type, String id)
WeldManagerAnnotatedType that may be used to read the annotations of the given class or interface.
Allows multiple annotated types, based on the same underlying type, to be created. AnnotatedTypes discovered by the container use the fully
qualified class name to identify the type.
This method must only be used when creating non-contextual instances, such as Java EE components. It's not designed to work with contextual instances.
If called after the container bootstrap finished, the client code is required to explicitly call WeldManager.disposeAnnotatedType(Class, String)
as soon as the specified type should be garbage-collected (to avoid memory leaks).
createAnnotatedType in interface WeldManagerAnnotatedTypepublic <T> void disposeAnnotatedType(Class<T> type, String id)
WeldManagerAnnotatedType created for the identified type.
This method should be explicitly called for each result of WeldManager.createAnnotatedType(Class, String) created after the container bootstrap finished.
It's not necessary to call this method unless the identified type should be a subject of garbage collection.
disposeAnnotatedType in interface WeldManagerWeldManager.createAnnotatedType(Class, String)Copyright © 2016. All rights reserved.