|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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()
Creates a new BeanManager instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanManagerImpl()
BeanManager instance.
Called by the system. Do not use outside of the
system.
| Method Detail |
|---|
public <T> void putInjectionTargetWrapper(Contextual<T> contextual,
InjectionTargetWrapper<T> wrapper)
public <T> InjectionTargetWrapper<T> getInjectionTargetWrapper(Contextual<T> contextual)
public <T> void putInjectionTargetWrapperForJavaEeComponents(Class<T> javaEeComponentClass,
InjectionTargetWrapper<T> wrapper)
public <T> InjectionTargetWrapper<T> getInjectionTargetWrapper(Class<T> javaEeComponentClass)
public ErrorStack getErrorStack()
public NotificationManager getNotificationManager()
public InjectionResolver getInjectionResolver()
public static BeanManagerImpl getManager()
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)
newBean - new bean instance
protected void addPassivationInfo(OwbBean<?> bean)
throws DefinitionException
bean -
DefinitionException - if the id is not unique.public BeanManager addContext(Context context)
public void addCustomInterceptorClass(Class<?> clazz)
public void addCustomDecoratorClass(Class<?> clazz)
public boolean containsCustomInterceptorClass(Class<?> clazz)
public boolean containsCustomDecoratorClass(Class<?> clazz)
public void fireEvent(Object event,
Annotation... bindings)
fireEvent in interface BeanManager
@Deprecated
public Object getInstanceByName(String name,
CreationalContext<?> creationalContext)
@Deprecated
public <T> T getInstanceToInject(InjectionPoint injectionPoint,
CreationalContext<?> context)
@Deprecated public Object getInstanceToInject(InjectionPoint injectionPoint)
@Deprecated
public <T> T getInstanceByType(Class<T> type,
Annotation... bindingTypes)
@Deprecated
public <T> T getInstanceByType(TypeLiteral<T> type,
Annotation... bindingTypes)
@Deprecated public Set<Bean<?>> resolveByName(String name)
@Deprecated
public Set<Bean<?>> resolveByType(Class<?> apiType,
Annotation... bindingTypes)
@Deprecated
public Set<Bean<?>> resolveByType(TypeLiteral<?> apiType,
Annotation... bindingTypes)
public Set<Bean<?>> getComponents()
public BeanManager addDecorator(Decorator decorator)
public BeanManager addInterceptor(Interceptor interceptor)
@Deprecated
public <T> T getInstance(Bean<T> bean,
CreationalContext<?> creationalContext)
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 Set<Interceptor<?>> getInterceptors()
public Set<Decorator<?>> getDecorators()
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> CreationalContext<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 BeanManager@Deprecated public <X> Bean<? extends X> getMostSpecializedBean(Bean<X> bean)
public 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> annotationType)
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 BeanManagerpublic ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory)
wrapExpressionFactory in interface BeanManagerpublic void addAdditionalQualifier(Class<? extends Annotation> qualifier)
public void addAdditionalAnnotatedType(AnnotatedType<?> annotatedType)
public List<Class<? extends Annotation>> getAdditionalQualifiers()
public void addAdditionalScope(ExternalScope additionalScope)
public List<ExternalScope> getAdditionalScopes()
public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||