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) |
<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.
|
Set<Bean<?>> |
getBeans(String name) |
Set<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(InjectionPoint ij,
CreationalContext<?> ctx) |
<T> WeldInjectionTargetFactory<T> |
getInjectionTargetFactory(AnnotatedType<T> annotatedType) |
Bean<?> |
getPassivationCapableBean(BeanIdentifier identifier) |
Bean<?> |
getPassivationCapableBean(String id) |
Object |
getReference(Bean<?> bean,
Type beanType,
CreationalContext<?> ctx) |
ServiceRegistry |
getServices()
Get the services registered for this manager
|
Instance<Object> |
instance() |
protected Object |
readResolve() |
<X> Bean<? extends X> |
resolve(Set<Bean<? extends X>> beans) |
List<Decorator<?>> |
resolveDecorators(Set<Type> types,
Annotation... qualifiers) |
List<Interceptor<?>> |
resolveInterceptors(InterceptionType type,
Annotation... interceptorBindings) |
<T> Set<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
|
BeanManagerImpl |
unwrap() |
static BeanManagerImpl |
unwrap(BeanManager manager) |
void |
validate(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(Bean<?> bean, Type beanType, CreationalContext<?> ctx)
getReference in interface BeanManagergetReference in class ForwardingBeanManagerpublic Object getInjectableReference(InjectionPoint ij, CreationalContext<?> ctx)
getInjectableReference in interface BeanManagergetInjectableReference in class ForwardingBeanManagerpublic Set<Bean<?>> getBeans(Type beanType, Annotation... qualifiers)
getBeans in interface BeanManagergetBeans in class ForwardingBeanManagerpublic Set<Bean<?>> getBeans(String name)
getBeans in interface BeanManagergetBeans in class ForwardingBeanManagerpublic Bean<?> getPassivationCapableBean(String id)
getPassivationCapableBean in interface BeanManagergetPassivationCapableBean in class ForwardingBeanManagerpublic <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans)
resolve in interface BeanManagerresolve in class ForwardingBeanManagerpublic void validate(InjectionPoint injectionPoint)
validate in interface BeanManagervalidate in class ForwardingBeanManagerpublic <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers)
resolveObserverMethods in interface BeanManagerresolveObserverMethods in class ForwardingBeanManagerpublic List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
resolveDecorators in interface BeanManagerresolveDecorators in class ForwardingBeanManagerpublic List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
resolveInterceptors in interface 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> 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(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 String getId()
WeldManagergetId in interface WeldManagerpublic Instance<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)
getInjectionTargetFactory in interface BeanManagergetInjectionTargetFactory in interface WeldManagergetInjectionTargetFactory in class ForwardingBeanManagerpublic <T> WeldCreationalContext<T> createCreationalContext(Contextual<T> contextual)
createCreationalContext in interface BeanManagercreateCreationalContext in interface WeldManagercreateCreationalContext in class ForwardingBeanManagerprotected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic static BeanManagerImpl unwrap(BeanManager manager)
public BeanManagerImpl unwrap()
unwrap in interface WeldManagerCopyright © 2014. All Rights Reserved.