public class BeanManagerImpl extends Object implements WeldManager, Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessibleBeanManager(BeanManagerImpl accessibleBeanManager) |
void |
addBean(javax.enterprise.inject.spi.Bean<?> bean) |
void |
addBeans(Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans)
Optimization which modifies CopyOnWrite structures only once instead of once for every bean.
|
void |
addContext(javax.enterprise.context.spi.Context context) |
void |
addDecorator(javax.enterprise.inject.spi.Decorator<?> bean) |
void |
addInterceptor(javax.enterprise.inject.spi.Interceptor<?> bean) |
void |
addObserver(javax.enterprise.inject.spi.ObserverMethod<?> observer)
Does the actual observer registration
|
boolean |
areInterceptorBindingsEquivalent(Annotation interceptorBinding1,
Annotation interceptorBinding2) |
boolean |
areQualifiersEquivalent(Annotation qualifier1,
Annotation qualifier2) |
void |
cleanup() |
void |
cleanupAfterBoot()
Clear the bean set that is only used to make sure that no duplicate beans are added.
|
BeanManagerImpl |
createActivity()
Create a new child activity.
|
<T> javax.enterprise.inject.spi.AnnotatedType<T> |
createAnnotatedType(Class<T> type) |
<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> javax.enterprise.inject.spi.Bean<T> |
createBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
Class<T> beanClass,
javax.enterprise.inject.spi.InjectionTargetFactory<T> injectionTargetFactory) |
<T,X> javax.enterprise.inject.spi.Bean<T> |
createBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
Class<X> beanClass,
javax.enterprise.inject.spi.ProducerFactory<X> producerFactory) |
javax.enterprise.inject.spi.BeanAttributes<?> |
createBeanAttributes(javax.enterprise.inject.spi.AnnotatedMember<?> member) |
<T> javax.enterprise.inject.spi.BeanAttributes<T> |
createBeanAttributes(javax.enterprise.inject.spi.AnnotatedType<T> type) |
<T> WeldCreationalContext<T> |
createCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual) |
<T> EnhancedAnnotatedType<T> |
createEnhancedAnnotatedType(Class<T> type) |
FieldInjectionPointAttributes<?,?> |
createInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field) |
ParameterInjectionPointAttributes<?,?> |
createInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter) |
<T> javax.enterprise.inject.spi.InjectionTarget<T> |
createInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<T> type) |
<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. |
<T> void |
disposeAnnotatedType(Class<T> type,
String id)
Dispose the
AnnotatedType created for the identified type. |
boolean |
equals(Object obj) |
javax.enterprise.event.Event<Object> |
event() |
Set<QualifierInstance> |
extractInterceptorBindingsForQualifierInstance(Iterable<QualifierInstance> annotations) |
void |
fireEvent(Object event,
Annotation... qualifiers)
Fires an event object with given event object for given bindings
|
<X> javax.enterprise.inject.spi.InjectionTarget<X> |
fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType)
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.
|
Iterable<javax.enterprise.inject.spi.Bean<?>> |
getAccessibleBeans() |
Iterable<javax.enterprise.inject.spi.Decorator<?>> |
getAccessibleDecorators() |
Iterable<javax.enterprise.inject.spi.Interceptor<?>> |
getAccessibleInterceptors() |
ObserverNotifier |
getAccessibleLenientObserverNotifier()
Get the lenient observer notifier for accessible observer methods.
|
HashSet<BeanManagerImpl> |
getAccessibleManagers() |
Iterable<String> |
getAccessibleNamespaces() |
<T> SessionBean<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.
|
<T> javax.enterprise.inject.spi.Bean<T> |
getBean(Resolvable resolvable) |
TypeSafeBeanResolver |
getBeanResolver()
Get the web bean resolver.
|
List<javax.enterprise.inject.spi.Bean<?>> |
getBeans()
The beans registered with the Web Bean manager which are resolvable.
|
Set<javax.enterprise.inject.spi.Bean<?>> |
getBeans(javax.enterprise.inject.spi.InjectionPoint injectionPoint) |
Set<javax.enterprise.inject.spi.Bean<?>> |
getBeans(String name) |
Set<javax.enterprise.inject.spi.Bean<?>> |
getBeans(Type beanType,
Annotation... qualifiers) |
Set<javax.enterprise.inject.spi.Bean<?>> |
getBeans(Type beanType,
Set<Annotation> qualifiers) |
ClientProxyProvider |
getClientProxyProvider() |
ContainerLifecycleEvents |
getContainerLifecycleEvents() |
javax.enterprise.context.spi.Context |
getContext(Class<? extends Annotation> scopeType)
Gets an active context of the given scope.
|
String |
getContextId() |
protected Map<Class<? extends Annotation>,List<javax.enterprise.context.spi.Context>> |
getContexts() |
BeanManagerImpl |
getCurrent() |
TypeSafeDecoratorResolver |
getDecoratorResolver()
Get the decorator resolver.
|
List<javax.enterprise.inject.spi.Decorator<?>> |
getDecorators() |
<T> EjbDescriptor<T> |
getEjbDescriptor(String beanName)
Get the EjbDescriptor for the given EJB name
|
javax.el.ELResolver |
getELResolver() |
ModuleEnablement |
getEnabled()
Enabled Alternatives, Interceptors and Decorators
|
Map<EjbDescriptor<?>,SessionBean<?>> |
getEnterpriseBeans()
Gets the class-mapped beans.
|
<T extends javax.enterprise.inject.spi.Extension> |
getExtension(Class<T> extensionClass) |
ObserverNotifier |
getGlobalLenientObserverNotifier()
Get the lenient global observer notifier.
|
ObserverNotifier |
getGlobalStrictObserverNotifier()
Get the Strict global observer notifier.
|
AtomicInteger |
getChildIds() |
String |
getId()
The ID of the manager, identical to the ID provided by the BDA
|
Object |
getInjectableReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
javax.enterprise.inject.spi.Bean<?> resolvedBean,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Get a reference, registering the injection point used.
|
Object |
getInjectableReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
javax.enterprise.context.spi.CreationalContext<?> creationalContext) |
<T> WeldInjectionTargetFactory<T> |
getInjectionTargetFactory(javax.enterprise.inject.spi.AnnotatedType<T> type)
Creates an
InjectionTargetFactory for a given type. |
<T> WeldInstance<Object> |
getInstance(javax.enterprise.context.spi.CreationalContext<?> ctx) |
Set<Annotation> |
getInterceptorBindingDefinition(Class<? extends Annotation> bindingType) |
int |
getInterceptorBindingHashCode(Annotation interceptorBinding) |
InterceptorMetadataReader |
getInterceptorMetadataReader() |
ConcurrentMap<SlimAnnotatedType<?>,InterceptionModel> |
getInterceptorModelRegistry() |
TypeSafeInterceptorResolver |
getInterceptorResolver() |
List<javax.enterprise.inject.spi.Interceptor<?>> |
getInterceptors() |
<T> InjectionTargetFactoryImpl<T> |
getLocalInjectionTargetFactory(javax.enterprise.inject.spi.AnnotatedType<T> type)
Creates an
InjectionTargetFactory for a given type. |
NameBasedResolver |
getNameBasedResolver() |
protected List<String> |
getNamespaces() |
List<javax.enterprise.inject.spi.ObserverMethod<?>> |
getObservers() |
javax.enterprise.inject.spi.Bean<?> |
getPassivationCapableBean(BeanIdentifier identifier) |
javax.enterprise.inject.spi.Bean<?> |
getPassivationCapableBean(String id) |
<X> FieldProducerFactory<X> |
getProducerFactory(javax.enterprise.inject.spi.AnnotatedField<? super X> field,
javax.enterprise.inject.spi.Bean<X> declaringBean) |
<X> MethodProducerFactory<X> |
getProducerFactory(javax.enterprise.inject.spi.AnnotatedMethod<? super X> method,
javax.enterprise.inject.spi.Bean<X> declaringBean) |
int |
getQualifierHashCode(Annotation qualifier) |
Object |
getReference(javax.enterprise.inject.spi.Bean<?> bean,
Type requestedType,
javax.enterprise.context.spi.CreationalContext<?> creationalContext) |
Object |
getReference(javax.enterprise.inject.spi.Bean<?> bean,
Type requestedType,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
boolean noProxy) |
Object |
getReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
javax.enterprise.inject.spi.Bean<?> resolvedBean,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Deprecated.
|
ServiceRegistry |
getServices()
Get the services registered for this manager
|
Set<Annotation> |
getStereotypeDefinition(Class<? extends Annotation> stereotype) |
javax.enterprise.context.spi.Context |
getUnwrappedContext(Class<? extends Annotation> scopeType) |
int |
hashCode() |
javax.enterprise.inject.Instance<Object> |
instance() |
<X> javax.enterprise.inject.spi.BeanAttributes<?> |
internalCreateBeanAttributes(javax.enterprise.inject.spi.AnnotatedMember<X> member) |
boolean |
isBeanEnabled(javax.enterprise.inject.spi.Bean<?> bean) |
boolean |
isContextActive(Class<? extends Annotation> scopeType)
Indicates whether there is an active context for a given scope.
|
boolean |
isInterceptorBinding(Class<? extends Annotation> annotationType) |
boolean |
isNormalScope(Class<? extends Annotation> annotationType) |
boolean |
isPassivatingScope(Class<? extends Annotation> annotationType) |
boolean |
isQualifier(Class<? extends Annotation> annotationType) |
boolean |
isScope(Class<? extends Annotation> annotationType) |
boolean |
isStereotype(Class<? extends Annotation> annotationType) |
static BeanManagerImpl |
newChildActivityManager(BeanManagerImpl parentManager)
Create a new child manager
|
static BeanManagerImpl |
newManager(BeanManagerImpl rootManager,
String id,
ServiceRegistry services) |
static BeanManagerImpl |
newRootManager(String contextId,
String id,
ServiceRegistry serviceRegistry)
Create a new, root, manager
|
protected Object |
readResolve() |
protected void |
registerBeanNamespace(javax.enterprise.inject.spi.Bean<?> bean) |
<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.Decorator<?>> |
resolveDecorators(Set<Type> types,
Set<Annotation> qualifiers) |
List<javax.enterprise.inject.spi.Interceptor<?>> |
resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type,
Annotation... interceptorBindings)
Resolves a list of interceptors based on interception type and interceptor
bindings.
|
List<javax.enterprise.inject.spi.Interceptor<?>> |
resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type,
Collection<Annotation> interceptorBindings)
Resolves a list of interceptors based on interception type and interceptor
bindings.
|
<T> Set<javax.enterprise.inject.spi.ObserverMethod<? super T>> |
resolveObserverMethods(T event,
Annotation... bindings) |
BeanManagerImpl |
setCurrent(Class<? extends Annotation> scopeType)
Associate an activity with the current context for a normal scope
|
void |
setEnabled(ModuleEnablement enabled) |
String |
toString()
Gets a string representation
|
BeanManagerImpl |
unwrap() |
void |
validate(javax.enterprise.inject.spi.InjectionPoint ij) |
javax.el.ExpressionFactory |
wrapExpressionFactory(javax.el.ExpressionFactory expressionFactory) |
public static BeanManagerImpl newRootManager(String contextId, String id, ServiceRegistry serviceRegistry)
serviceRegistry - public static BeanManagerImpl newManager(BeanManagerImpl rootManager, String id, ServiceRegistry services)
public static BeanManagerImpl newChildActivityManager(BeanManagerImpl parentManager)
parentManager - the parent managerpublic String getContextId()
public void addAccessibleBeanManager(BeanManagerImpl accessibleBeanManager)
public HashSet<BeanManagerImpl> getAccessibleManagers()
public void addBean(javax.enterprise.inject.spi.Bean<?> bean)
public void addBeans(Collection<? extends javax.enterprise.inject.spi.Bean<?>> beans)
beans - public void addDecorator(javax.enterprise.inject.spi.Decorator<?> bean)
public <T> Set<javax.enterprise.inject.spi.ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... bindings)
resolveObserverMethods in interface javax.enterprise.inject.spi.BeanManagerpublic void addInterceptor(javax.enterprise.inject.spi.Interceptor<?> bean)
public ModuleEnablement getEnabled()
public void setEnabled(ModuleEnablement enabled)
public boolean isBeanEnabled(javax.enterprise.inject.spi.Bean<?> bean)
public Set<javax.enterprise.inject.spi.Bean<?>> getBeans(Type beanType, Annotation... qualifiers)
getBeans in interface javax.enterprise.inject.spi.BeanManagerpublic Set<javax.enterprise.inject.spi.Bean<?>> getBeans(Type beanType, Set<Annotation> qualifiers)
public Set<javax.enterprise.inject.spi.Bean<?>> getBeans(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
protected void registerBeanNamespace(javax.enterprise.inject.spi.Bean<?> bean)
public Map<EjbDescriptor<?>,SessionBean<?>> getEnterpriseBeans()
public List<javax.enterprise.inject.spi.Bean<?>> getBeans()
public List<javax.enterprise.inject.spi.Decorator<?>> getDecorators()
public List<javax.enterprise.inject.spi.Interceptor<?>> getInterceptors()
public Iterable<javax.enterprise.inject.spi.Bean<?>> getAccessibleBeans()
public Iterable<javax.enterprise.inject.spi.Interceptor<?>> getAccessibleInterceptors()
public Iterable<javax.enterprise.inject.spi.Decorator<?>> getAccessibleDecorators()
public void addContext(javax.enterprise.context.spi.Context context)
public void addObserver(javax.enterprise.inject.spi.ObserverMethod<?> observer)
observer - =public void fireEvent(Object event, Annotation... qualifiers)
fireEvent in interface javax.enterprise.inject.spi.BeanManagerevent - The event object to pass alongqualifiers - The binding types to matchBeanManager.fireEvent(java.lang.Object,
java.lang.annotation.Annotation[])public javax.enterprise.context.spi.Context getContext(Class<? extends Annotation> scopeType)
getContext in interface javax.enterprise.inject.spi.BeanManagerscopeType - The scope to matchIllegalStateException - if there are multiple active scopes for a given contextBeanManager.getContext(java.lang.Class)public javax.enterprise.context.spi.Context getUnwrappedContext(Class<? extends Annotation> scopeType)
public boolean isContextActive(Class<? extends Annotation> scopeType)
scopeType - IllegalStateException - if there are multiple active scopes for a given contextpublic Object getReference(javax.enterprise.inject.spi.Bean<?> bean, Type requestedType, javax.enterprise.context.spi.CreationalContext<?> creationalContext, boolean noProxy)
public Object getReference(javax.enterprise.inject.spi.Bean<?> bean, Type requestedType, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
getReference in interface javax.enterprise.inject.spi.BeanManager@Deprecated public Object getReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint, javax.enterprise.inject.spi.Bean<?> resolvedBean, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
getInjectableReference(InjectionPoint, Bean, CreationalContext) insteadgetInjectableReference(InjectionPoint, Bean, CreationalContext) instead.injectionPoint - resolvedBean - creationalContext - public Object getInjectableReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint, javax.enterprise.inject.spi.Bean<?> resolvedBean, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
injectionPoint - the injection point to registerresolvedBean - the bean to get a reference tocreationalContext - the creationalContextpublic Object getInjectableReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
getInjectableReference in interface javax.enterprise.inject.spi.BeanManagerpublic <T> javax.enterprise.inject.spi.Bean<T> getBean(Resolvable resolvable)
public Set<javax.enterprise.inject.spi.Bean<?>> getBeans(String name)
getBeans in interface javax.enterprise.inject.spi.BeanManagerpublic List<javax.enterprise.inject.spi.Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
resolveDecorators in interface javax.enterprise.inject.spi.BeanManagerpublic List<javax.enterprise.inject.spi.Decorator<?>> resolveDecorators(Set<Type> types, Set<Annotation> qualifiers)
public List<javax.enterprise.inject.spi.Interceptor<?>> resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type, Annotation... interceptorBindings)
resolveInterceptors in interface javax.enterprise.inject.spi.BeanManagertype - The interception type to resolveinterceptorBindings - The binding types to matchBeanManager.resolveInterceptors(javax.enterprise.inject.spi.InterceptionType,
java.lang.annotation.Annotation[])public List<javax.enterprise.inject.spi.Interceptor<?>> resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type, Collection<Annotation> interceptorBindings)
type - The interception type to resolveinterceptorBindings - The binding types to matchpublic TypeSafeBeanResolver getBeanResolver()
public TypeSafeDecoratorResolver getDecoratorResolver()
public TypeSafeInterceptorResolver getInterceptorResolver()
public NameBasedResolver getNameBasedResolver()
public ObserverNotifier getAccessibleLenientObserverNotifier()
ObserverNotifierpublic ObserverNotifier getGlobalLenientObserverNotifier()
ObserverNotifierpublic ObserverNotifier getGlobalStrictObserverNotifier()
ObserverNotifierpublic String toString()
public BeanManagerImpl createActivity()
WeldManagercreateActivity in interface WeldManagerpublic BeanManagerImpl setCurrent(Class<? extends Annotation> scopeType)
WeldManagersetCurrent in interface WeldManagerscopeType - the scope to associate the activity withpublic BeanManagerImpl getCurrent()
getCurrent in interface WeldManagerWeldManager that corresponds to the current activitypublic ServiceRegistry getServices()
WeldManagergetServices in interface WeldManagerprotected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic ClientProxyProvider getClientProxyProvider()
protected Map<Class<? extends Annotation>,List<javax.enterprise.context.spi.Context>> getContexts()
public String getId()
WeldManagergetId in interface WeldManagerpublic AtomicInteger getChildIds()
public List<javax.enterprise.inject.spi.ObserverMethod<?>> getObservers()
public <T> javax.enterprise.inject.spi.InjectionTarget<T> createInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<T> type)
createInjectionTarget in interface javax.enterprise.inject.spi.BeanManagerpublic <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 void validate(javax.enterprise.inject.spi.InjectionPoint ij)
validate in interface javax.enterprise.inject.spi.BeanManagerpublic Set<Annotation> getInterceptorBindingDefinition(Class<? extends Annotation> bindingType)
getInterceptorBindingDefinition in interface javax.enterprise.inject.spi.BeanManagerpublic javax.enterprise.inject.spi.Bean<?> getPassivationCapableBean(String id)
getPassivationCapableBean in interface javax.enterprise.inject.spi.BeanManagerpublic javax.enterprise.inject.spi.Bean<?> getPassivationCapableBean(BeanIdentifier identifier)
getPassivationCapableBean in interface WeldManagerpublic Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype)
getStereotypeDefinition in interface javax.enterprise.inject.spi.BeanManagerpublic boolean isQualifier(Class<? extends Annotation> annotationType)
isQualifier in interface javax.enterprise.inject.spi.BeanManagerpublic boolean isInterceptorBinding(Class<? extends Annotation> annotationType)
isInterceptorBinding in interface javax.enterprise.inject.spi.BeanManagerpublic boolean isNormalScope(Class<? extends Annotation> annotationType)
isNormalScope in interface javax.enterprise.inject.spi.BeanManagerpublic boolean isPassivatingScope(Class<? extends Annotation> annotationType)
isPassivatingScope in interface javax.enterprise.inject.spi.BeanManagerpublic boolean isScope(Class<? extends Annotation> annotationType)
isScope in interface javax.enterprise.inject.spi.BeanManagerpublic boolean isStereotype(Class<? extends Annotation> annotationType)
isStereotype in interface javax.enterprise.inject.spi.BeanManagerpublic javax.el.ELResolver getELResolver()
getELResolver in interface javax.enterprise.inject.spi.BeanManagerpublic javax.el.ExpressionFactory wrapExpressionFactory(javax.el.ExpressionFactory expressionFactory)
wrapExpressionFactory in interface javax.enterprise.inject.spi.BeanManagerpublic <T> WeldCreationalContext<T> createCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
createCreationalContext in interface javax.enterprise.inject.spi.BeanManagercreateCreationalContext in interface WeldManagerpublic <T> javax.enterprise.inject.spi.AnnotatedType<T> createAnnotatedType(Class<T> type)
createAnnotatedType in interface javax.enterprise.inject.spi.BeanManagerpublic <T> EnhancedAnnotatedType<T> createEnhancedAnnotatedType(Class<T> type)
public <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)public <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.BeanManagerpublic <T> EjbDescriptor<T> getEjbDescriptor(String beanName)
WeldManagergetEjbDescriptor in interface WeldManagerT - the type of the EJBbeanName - the given EJB namepublic <T> SessionBean<T> getBean(EjbDescriptor<T> descriptor)
WeldManagergetBean in interface WeldManagerT - the type of the beandescriptor - the given EJB descriptorpublic void cleanup()
public void cleanupAfterBoot()
public ConcurrentMap<SlimAnnotatedType<?>,InterceptionModel> getInterceptorModelRegistry()
public InterceptorMetadataReader getInterceptorMetadataReader()
public <X> javax.enterprise.inject.spi.InjectionTarget<X> fireProcessInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<X> annotatedType)
WeldManagerfireProcessInjectionTarget in interface WeldManagerX - the typeannotatedType - 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 Set<QualifierInstance> extractInterceptorBindingsForQualifierInstance(Iterable<QualifierInstance> annotations)
public javax.enterprise.inject.Instance<Object> instance()
instance in interface WeldManagerpublic javax.enterprise.event.Event<Object> event()
public <T> WeldInstance<Object> getInstance(javax.enterprise.context.spi.CreationalContext<?> ctx)
public <T> javax.enterprise.inject.spi.BeanAttributes<T> createBeanAttributes(javax.enterprise.inject.spi.AnnotatedType<T> type)
createBeanAttributes in interface javax.enterprise.inject.spi.BeanManagerpublic javax.enterprise.inject.spi.BeanAttributes<?> createBeanAttributes(javax.enterprise.inject.spi.AnnotatedMember<?> member)
createBeanAttributes in interface javax.enterprise.inject.spi.BeanManagerpublic <X> javax.enterprise.inject.spi.BeanAttributes<?> internalCreateBeanAttributes(javax.enterprise.inject.spi.AnnotatedMember<X> member)
public <T> javax.enterprise.inject.spi.Bean<T> createBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
Class<T> beanClass,
javax.enterprise.inject.spi.InjectionTargetFactory<T> injectionTargetFactory)
createBean in interface javax.enterprise.inject.spi.BeanManagerpublic <T,X> javax.enterprise.inject.spi.Bean<T> createBean(javax.enterprise.inject.spi.BeanAttributes<T> attributes,
Class<X> beanClass,
javax.enterprise.inject.spi.ProducerFactory<X> producerFactory)
createBean in interface javax.enterprise.inject.spi.BeanManagerpublic FieldInjectionPointAttributes<?,?> createInjectionPoint(javax.enterprise.inject.spi.AnnotatedField<?> field)
createInjectionPoint in interface javax.enterprise.inject.spi.BeanManagerpublic ParameterInjectionPointAttributes<?,?> createInjectionPoint(javax.enterprise.inject.spi.AnnotatedParameter<?> parameter)
createInjectionPoint in interface javax.enterprise.inject.spi.BeanManagerpublic <T extends javax.enterprise.inject.spi.Extension> T getExtension(Class<T> extensionClass)
getExtension in interface javax.enterprise.inject.spi.BeanManagerpublic ContainerLifecycleEvents getContainerLifecycleEvents()
public boolean areQualifiersEquivalent(Annotation qualifier1, Annotation qualifier2)
areQualifiersEquivalent in interface javax.enterprise.inject.spi.BeanManagerpublic boolean areInterceptorBindingsEquivalent(Annotation interceptorBinding1, Annotation interceptorBinding2)
areInterceptorBindingsEquivalent in interface javax.enterprise.inject.spi.BeanManagerpublic int getQualifierHashCode(Annotation qualifier)
getQualifierHashCode in interface javax.enterprise.inject.spi.BeanManagerpublic int getInterceptorBindingHashCode(Annotation interceptorBinding)
getInterceptorBindingHashCode in interface javax.enterprise.inject.spi.BeanManagerpublic <T> InjectionTargetFactoryImpl<T> getLocalInjectionTargetFactory(javax.enterprise.inject.spi.AnnotatedType<T> type)
InjectionTargetFactory for a given type. The factory will be using this BeanManager.public <T> WeldInjectionTargetFactory<T> getInjectionTargetFactory(javax.enterprise.inject.spi.AnnotatedType<T> type)
InjectionTargetFactory for a given type. The BeanManager for the InjectionTarget will
be inferred using CDI11Deployment.getBeanDeploymentArchive(Class).getInjectionTargetFactory in interface javax.enterprise.inject.spi.BeanManagergetInjectionTargetFactory in interface WeldManagerpublic <X> FieldProducerFactory<X> getProducerFactory(javax.enterprise.inject.spi.AnnotatedField<? super X> field, javax.enterprise.inject.spi.Bean<X> declaringBean)
getProducerFactory in interface javax.enterprise.inject.spi.BeanManagerpublic <X> MethodProducerFactory<X> getProducerFactory(javax.enterprise.inject.spi.AnnotatedMethod<? super X> method, javax.enterprise.inject.spi.Bean<X> declaringBean)
getProducerFactory in interface javax.enterprise.inject.spi.BeanManagerpublic <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 BeanManagerImpl unwrap()
unwrap in interface WeldManagerCopyright © 2016. All rights reserved.