public interface WeldManager extends BeanManager, java.io.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(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
|
<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<java.lang.Object> |
instance() |
WeldManager |
setCurrent(java.lang.Class<? extends java.lang.annotation.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, wrapExpressionFactory
WeldManager createActivity()
WeldManager setCurrent(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType)
scopeType
- the scope to associate the activity withContextNotActiveException
- if the given scope is inactivejava.lang.IllegalArgumentException
- 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(java.lang.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
- java.lang.String getId()
Instance<java.lang.Object> instance()
<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 BeanManager
type
- the annotated type to create the injection target factory forInjectionTargetFactory
<T> WeldCreationalContext<T> createCreationalContext(Contextual<T> contextual)
BeanManager
CreationalContext
for the given
contextual type, or for a non-contextual object.createCreationalContext
in interface BeanManager
contextual
- the Contextual
, or a null value in the case of a non-contextual
objectCreationalContext
Bean<?> 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 © 2014. All Rights Reserved.