org.apache.webbeans.container
Class InjectableBeanManager
java.lang.Object
org.apache.webbeans.container.InjectableBeanManager
- All Implemented Interfaces:
- Externalizable, Serializable, BeanManager
public class InjectableBeanManager
- extends Object
- implements BeanManager, Serializable, Externalizable
This implementation of the BeanManager will get used
for whenever a BeanManager gets injected into a bean:
private @Inject BeanManager beanManager;
This class is Serializable and always resolves the current
instance of the central BeanManager automatically.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InjectableBeanManager
public InjectableBeanManager()
createAnnotatedType
public <T> AnnotatedType<T> createAnnotatedType(Class<T> type)
- Specified by:
createAnnotatedType in interface BeanManager
createCreationalContext
public <T> CreationalContext<T> createCreationalContext(Contextual<T> contextual)
- Specified by:
createCreationalContext in interface BeanManager
createInjectionTarget
public <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type)
- Specified by:
createInjectionTarget in interface BeanManager
fireEvent
public void fireEvent(Object event,
Annotation... qualifiers)
- Specified by:
fireEvent in interface BeanManager
getBeans
public Set<Bean<?>> getBeans(String name)
- Specified by:
getBeans in interface BeanManager
getBeans
public Set<Bean<?>> getBeans(Type beanType,
Annotation... qualifiers)
- Specified by:
getBeans in interface BeanManager
getContext
public Context getContext(Class<? extends Annotation> scope)
- Specified by:
getContext in interface BeanManager
getELResolver
public ELResolver getELResolver()
- Specified by:
getELResolver in interface BeanManager
getInjectableReference
public Object getInjectableReference(InjectionPoint injectionPoint,
CreationalContext<?> ctx)
- Specified by:
getInjectableReference in interface BeanManager
getInterceptorBindingDefinition
public Set<Annotation> getInterceptorBindingDefinition(Class<? extends Annotation> qualifier)
- Specified by:
getInterceptorBindingDefinition in interface BeanManager
getPassivationCapableBean
public Bean<?> getPassivationCapableBean(String id)
- Specified by:
getPassivationCapableBean in interface BeanManager
getReference
public Object getReference(Bean<?> bean,
Type beanType,
CreationalContext<?> ctx)
- Specified by:
getReference in interface BeanManager
getStereotypeDefinition
public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype)
- Specified by:
getStereotypeDefinition in interface BeanManager
isInterceptorBinding
public boolean isInterceptorBinding(Class<? extends Annotation> annotationType)
- Specified by:
isInterceptorBinding in interface BeanManager
isNormalScope
public boolean isNormalScope(Class<? extends Annotation> annotationType)
- Specified by:
isNormalScope in interface BeanManager
isPassivatingScope
public boolean isPassivatingScope(Class<? extends Annotation> annotationType)
- Specified by:
isPassivatingScope in interface BeanManager
isQualifier
public boolean isQualifier(Class<? extends Annotation> annotationType)
- Specified by:
isQualifier in interface BeanManager
isScope
public boolean isScope(Class<? extends Annotation> annotationType)
- Specified by:
isScope in interface BeanManager
isStereotype
public boolean isStereotype(Class<? extends Annotation> annotationType)
- Specified by:
isStereotype in interface BeanManager
resolve
public <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans)
- Specified by:
resolve in interface BeanManager
resolveDecorators
public List<Decorator<?>> resolveDecorators(Set<Type> types,
Annotation... qualifiers)
- Specified by:
resolveDecorators in interface BeanManager
resolveInterceptors
public List<Interceptor<?>> resolveInterceptors(InterceptionType type,
Annotation... interceptorBindings)
- Specified by:
resolveInterceptors in interface BeanManager
resolveObserverMethods
public <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event,
Annotation... qualifiers)
- Specified by:
resolveObserverMethods in interface BeanManager
validate
public void validate(InjectionPoint injectionPoint)
- Specified by:
validate in interface BeanManager
wrapExpressionFactory
public ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory)
- Specified by:
wrapExpressionFactory in interface BeanManager
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.