public interface WeldManager extends javax.enterprise.inject.spi.BeanManager, Serializable
Modifier and Type | Method and Description |
---|---|
WeldManager |
createActivity()
Create a new child activity.
|
<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. |
<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.
|
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(javax.enterprise.inject.spi.AnnotatedType<T> type) |
javax.enterprise.inject.spi.Bean<?> |
getPassivationCapableBean(BeanIdentifier identifier) |
ServiceRegistry |
getServices()
Get the services registered for this manager
|
javax.enterprise.inject.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, wrapExpressionFactory
WeldManager createActivity()
WeldManager setCurrent(Class<? extends Annotation> scopeType)
scopeType
- the scope to associate the activity withjavax.enterprise.context.ContextNotActiveException
- if the given scope is inactiveIllegalArgumentException
- if the given scope is not a normal scope<T> javax.enterprise.inject.spi.InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor)
fireProcessInjectionTarget(AnnotatedType)
and
fireProcessInjectionTarget(AnnotatedType, InjectionTarget)
must be used to obtain an InjectionTarget
for non-contextual EJB injection.T
- the type of the EJBdescriptor
- the given EJB descriptor<T> javax.enterprise.inject.spi.Bean<T> getBean(EjbDescriptor<T> descriptor)
T
- the type of the beandescriptor
- the given EJB descriptor<T> EjbDescriptor<T> getEjbDescriptor(String ejbName)
T
- the type of the EJBejbName
- the given EJB nameServiceRegistry getServices()
WeldManager getCurrent()
WeldManager
that corresponds to the current activity<X> javax.enterprise.inject.spi.InjectionTarget<X> fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> type)
X
- the typetype
- the type<X> javax.enterprise.inject.spi.InjectionTarget<X> fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType, javax.enterprise.inject.spi.InjectionTarget<X> injectionTarget)
X
- the typeannotatedType
- the typeinjectionTarget
- the injection targetString getId()
javax.enterprise.inject.Instance<Object> instance()
<T> WeldInjectionTargetFactory<T> getInjectionTargetFactory(javax.enterprise.inject.spi.AnnotatedType<T> type)
getInjectionTargetFactory
in interface javax.enterprise.inject.spi.BeanManager
<T> WeldCreationalContext<T> createCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
createCreationalContext
in interface javax.enterprise.inject.spi.BeanManager
javax.enterprise.inject.spi.Bean<?> getPassivationCapableBean(BeanIdentifier identifier)
<T> WeldInjectionTargetBuilder<T> createInjectionTargetBuilder(javax.enterprise.inject.spi.AnnotatedType<T> type)
WeldInjectionTargetBuilder
which can be used to create a new WeldInjectionTarget
for the specified type.T
- the typetype
- the specified typeWeldInjectionTargetBuilder
instance for the specified typeWeldManager unwrap()
Copyright © 2008-2015. All Rights Reserved.