public interface WeldManager extends BeanManager, Serializable
| 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. |
<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.
|
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
|
<T> WeldInjectionTargetFactory<T> |
getInjectionTargetFactory(AnnotatedType<T> type)
An implementation of
InjectionTargetFactory that provides container created InjectionTarget instances. |
Bean<?> |
getPassivationCapableBean(BeanIdentifier identifier) |
ServiceRegistry |
getServices()
Get the services registered for this manager
|
Instance<Object> |
instance() |
WeldManager |
setCurrent(Class<? extends Annotation> scopeType)
Associate an activity with the current context for a normal scope
|
WeldManager |
unwrap() |
areInterceptorBindingsEquivalent, areQualifiersEquivalent, createAnnotatedType, createBean, createBean, createBeanAttributes, createBeanAttributes, createInjectionPoint, createInjectionPoint, createInjectionTarget, fireEvent, getBeans, getBeans, getContext, getELResolver, getExtension, getInjectableReference, getInterceptorBindingDefinition, getInterceptorBindingHashCode, getPassivationCapableBean, getProducerFactory, getProducerFactory, getQualifierHashCode, getReference, getStereotypeDefinition, isInterceptorBinding, isNormalScope, isPassivatingScope, isQualifier, isScope, isStereotype, resolve, resolveDecorators, resolveInterceptors, resolveObserverMethods, validate, wrapExpressionFactoryWeldManager createActivity()
WeldManager setCurrent(Class<? extends Annotation> scopeType)
scopeType - the scope to associate the activity withContextNotActiveException - if the given scope is inactiveIllegalArgumentException - if the given scope is not a normal scope<T> InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor)
#fireProcessInjectionTarget()
must be used to obtain an InjectionTarget for non-contextual EJB injection.T - descriptor - <T> Bean<T> getBean(EjbDescriptor<T> descriptor)
T - descriptor - <T> EjbDescriptor<T> getEjbDescriptor(String ejbName)
T - ejbName - ServiceRegistry getServices()
WeldManager getCurrent()
WeldManager that corresponds to the current activity<X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> type)
X - type - <X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> annotatedType, InjectionTarget<X> injectionTarget)
X - type - injectionTarget - String getId()
<T> WeldInjectionTargetFactory<T> getInjectionTargetFactory(AnnotatedType<T> type)
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 BeanManagertype - the annotated type to create the injection target factory forInjectionTargetFactory<T> WeldCreationalContext<T> createCreationalContext(Contextual<T> contextual)
BeanManagerCreationalContext for the given
contextual type, or for a non-contextual object.createCreationalContext in interface BeanManagercontextual - the Contextual, or a null value in the case of a non-contextual
objectCreationalContextBean<?> getPassivationCapableBean(BeanIdentifier identifier)
<T> WeldInjectionTargetBuilder<T> createInjectionTargetBuilder(AnnotatedType<T> type)
WeldInjectionTargetBuilder which can be used to create a new WeldInjectionTarget for the specified type.type - the specified typeWeldInjectionTargetBuilder instance for the specified typeWeldManager unwrap()
Copyright © 2015. All Rights Reserved.