public class BeanManagerImpl extends AbstractBeanManager implements BeanManager, Referenceable
BeanManager contract of the web beans
container.
It is written as thread-safe.
BeanManager| Constructor and Description |
|---|
BeanManagerImpl(WebBeansContext webBeansContext)
Creates a new
BeanManager instance. |
areInterceptorBindingsEquivalent, areQualifiersEquivalent, createBean, createBean, createBeanAttributes, createBeanAttributes, createInjectionPoint, createInjectionPoint, getExtension, getInjectionTargetFactory, getInterceptorBindingHashCode, getProducerFactory, getProducerFactory, getQualifierHashCodepublic BeanManagerImpl(WebBeansContext webBeansContext)
BeanManager instance.
Called by the system. Do not use outside of the
system.public WebBeansContext getWebBeansContext()
getWebBeansContext in class AbstractBeanManagerpublic <T> void putProducerForJavaEeComponent(Class<T> javaEeComponentClass, Producer<T> wrapper)
public <T> Producer<T> getProducerForJavaEeComponent(Class<T> javaEeComponentClass)
public ErrorStack getErrorStack()
public NotificationManager getNotificationManager()
public InjectionResolver getInjectionResolver()
public void setXMLConfigurator(WebBeansXMLConfigurator xmlConfigurator)
xmlConfigurator - set xml configurator instance.WebBeansXMLConfiguratorpublic Context getContext(Class<? extends Annotation> scopeType)
getContext in interface BeanManagerscopeType - scope type of the contextContextNotActiveException - if no active contextIllegalStateException - if more than one active contextpublic BeanManager addBean(Bean<?> newBean)
inUse status.newBean - new bean instancepublic <T> BeanManager addInternalBean(Bean<T> newBean)
newBean - public void addPassivationInfo(Bean<?> bean) throws DefinitionException
bean - DefinitionException - if the id is not unique.public BeanManager addContext(Context context)
public void fireEvent(Object event, Annotation... bindings)
fireEvent in interface BeanManagerpublic void fireLifecycleEvent(Object event, Annotation... bindings)
fireEvent(Object, java.lang.annotation.Annotation...) but intended for
internal CDI Container lifecycle events. The difference is that those
events must only be delivered to CDI Extensions and not to normal beans.public void fireEvent(Object event, EventMetadata metadata, boolean isLifecycleEvent)
public List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... bindingTypes)
resolveDecorators in interface BeanManagerpublic List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
resolveInterceptors in interface BeanManagerpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic BeanManager parse(InputStream xmlStream)
xmlStream - beans xml definitionsBeanManager instancepublic <T> AnnotatedType<T> createAnnotatedType(Class<T> type)
createAnnotatedType in interface BeanManagerpublic <T> CreationalContextImpl<T> createCreationalContext(Contextual<T> contextual)
createCreationalContext in interface BeanManagerpublic Set<Bean<?>> getBeans(Type beanType, Annotation... bindings)
getBeans in interface BeanManagerpublic Set<Bean<?>> getBeans(String name)
getBeans in interface BeanManagerpublic ELResolver getELResolver()
getELResolver in interface BeanManagerpublic Object getInjectableReference(InjectionPoint injectionPoint, CreationalContext<?> ownerCreationalContext)
getInjectableReference in interface BeanManagerpublic Set<Annotation> getInterceptorBindingDefinition(Class<? extends Annotation> binding)
getInterceptorBindingDefinition in interface BeanManagerpublic Bean<?> getPassivationCapableBean(String id)
getPassivationCapableBean in interface BeanManagerpublic Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> creationalContext)
getReference in interface BeanManagerpublic Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype)
getStereotypeDefinition in interface BeanManagerpublic boolean isQualifier(Class<? extends Annotation> annotationType)
isQualifier in interface BeanManagerpublic boolean isInterceptorBinding(Class<? extends Annotation> annotationType)
isInterceptorBinding in interface BeanManagerpublic boolean isScope(Class<? extends Annotation> annotationType)
isScope in interface BeanManagerpublic boolean isNormalScope(Class<? extends Annotation> scopeType)
isNormalScope in interface BeanManagerpublic boolean isPassivatingScope(Class<? extends Annotation> annotationType)
isPassivatingScope in interface BeanManagerpublic boolean isStereotype(Class<? extends Annotation> annotationType)
isStereotype in interface BeanManagerpublic <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans)
resolve in interface BeanManagerpublic void validate(InjectionPoint injectionPoint)
validate in interface BeanManagerpublic <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type)
createInjectionTarget in interface BeanManagerpublic <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers)
resolveObserverMethods in interface BeanManagerpublic <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, EventMetadata metadata)
public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory)
wrapExpressionFactory in interface BeanManagerpublic void addAdditionalQualifier(Class<? extends Annotation> qualifier)
public void addAdditionalInterceptorBindings(Class<? extends Annotation> interceptorBinding)
public void addAdditionalAnnotatedType(AnnotatedType<?> annotatedType)
public void addAdditionalAnnotatedType(AnnotatedType<?> annotatedType, String id)
public void removeAdditionalAnnotatedType(AnnotatedType<?> annotatedType)
public void removeAdditionalAnnotatedType(AnnotatedType<?> annotatedType, String id)
public List<Class<? extends Annotation>> getAdditionalQualifiers()
public void addAdditionalScope(ExternalScope additionalScope)
public List<ExternalScope> getAdditionalScopes()
public Collection<AnnotatedType<?>> getAdditionalAnnotatedTypes()
public <T> AnnotatedType<T> getAdditionalAnnotatedType(Class<T> type, String id)
public void clear()
public void clearCacheProxies()
public boolean isInUse()
Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.