|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.webbeans.container.AbstractBeanManager
org.apache.webbeans.container.BeanManagerImpl
public class BeanManagerImpl
Implementation of the BeanManager contract of the web beans
container.
It is written as thread-safe.
BeanManager| Constructor Summary | |
|---|---|
BeanManagerImpl(WebBeansContext webBeansContext)
Creates a new BeanManager instance. |
|
| Methods inherited from class org.apache.webbeans.container.AbstractBeanManager |
|---|
areInterceptorBindingsEquivalent, areQualifiersEquivalent, createBean, createBean, createBeanAttributes, createBeanAttributes, createInjectionPoint, createInjectionPoint, getExtension, getInjectionTargetFactory, getInterceptorBindingHashCode, getProducerFactory, getProducerFactory, getQualifierHashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanManagerImpl(WebBeansContext webBeansContext)
BeanManager instance.
Called by the system. Do not use outside of the
system.
| Method Detail |
|---|
public WebBeansContext getWebBeansContext()
getWebBeansContext in class AbstractBeanManager
public <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 context
ContextNotActiveException - if no active context
IllegalStateException - if more than one active contextpublic BeanManager addBean(Bean<?> newBean)
inUse status.
newBean - new bean instance
public <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 BeanManager
public 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 Set<Bean<?>> getComponents()
public List<Decorator<?>> resolveDecorators(Set<Type> types,
Annotation... bindingTypes)
resolveDecorators in interface BeanManager
public List<Interceptor<?>> resolveInterceptors(InterceptionType type,
Annotation... interceptorBindings)
resolveInterceptors in interface BeanManagerpublic Set<Bean<?>> getBeans()
public Reference getReference()
throws NamingException
getReference in interface ReferenceableNamingExceptionpublic BeanManager parse(InputStream xmlStream)
xmlStream - beans xml definitions
BeanManager instancepublic <T> AnnotatedType<T> createAnnotatedType(Class<T> type)
createAnnotatedType in interface BeanManagerpublic <T> CreationalContextImpl<T> createCreationalContext(Contextual<T> contextual)
createCreationalContext in interface BeanManager
public 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 BeanManager
public 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 BeanManager
public 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 BeanManager
public <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event,
Annotation... qualifiers)
resolveObserverMethods in interface BeanManager
public <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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||