org.apache.webbeans.container
Class InjectableBeanManager

java.lang.Object
  extended by org.apache.webbeans.container.InjectableBeanManager
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, javax.enterprise.inject.spi.BeanManager

public class InjectableBeanManager
extends java.lang.Object
implements javax.enterprise.inject.spi.BeanManager, java.io.Serializable, java.io.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

Constructor Summary
InjectableBeanManager()
           
InjectableBeanManager(javax.enterprise.inject.spi.BeanManager bm)
           
 
Method Summary
<T> javax.enterprise.inject.spi.AnnotatedType<T>
createAnnotatedType(java.lang.Class<T> type)
           
<T> javax.enterprise.context.spi.CreationalContext<T>
createCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
           
<T> javax.enterprise.inject.spi.InjectionTarget<T>
createInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<T> type)
           
 boolean equals(java.lang.Object obj)
           
 void fireEvent(java.lang.Object event, java.lang.annotation.Annotation... qualifiers)
           
 java.util.Set<javax.enterprise.inject.spi.Bean<?>> getBeans(java.lang.String name)
           
 java.util.Set<javax.enterprise.inject.spi.Bean<?>> getBeans(java.lang.reflect.Type beanType, java.lang.annotation.Annotation... qualifiers)
           
 javax.enterprise.context.spi.Context getContext(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
           
 javax.el.ELResolver getELResolver()
           
 java.lang.Object getInjectableReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint, javax.enterprise.context.spi.CreationalContext<?> ctx)
           
 java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier)
           
 javax.enterprise.inject.spi.Bean<?> getPassivationCapableBean(java.lang.String id)
           
 java.lang.Object getReference(javax.enterprise.inject.spi.Bean<?> bean, java.lang.reflect.Type beanType, javax.enterprise.context.spi.CreationalContext<?> ctx)
           
 java.util.Set<java.lang.annotation.Annotation> getStereotypeDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
           
 int hashCode()
           
 boolean isInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 boolean isNormalScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 boolean isPassivatingScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 boolean isQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 boolean isScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 boolean isStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
           
 void readExternal(java.io.ObjectInput in)
           
<X> javax.enterprise.inject.spi.Bean<? extends X>
resolve(java.util.Set<javax.enterprise.inject.spi.Bean<? extends X>> beans)
           
 java.util.List<javax.enterprise.inject.spi.Decorator<?>> resolveDecorators(java.util.Set<java.lang.reflect.Type> types, java.lang.annotation.Annotation... qualifiers)
           
 java.util.List<javax.enterprise.inject.spi.Interceptor<?>> resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type, java.lang.annotation.Annotation... interceptorBindings)
           
<T> java.util.Set<javax.enterprise.inject.spi.ObserverMethod<? super T>>
resolveObserverMethods(T event, java.lang.annotation.Annotation... qualifiers)
           
 void validate(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
           
 javax.el.ExpressionFactory wrapExpressionFactory(javax.el.ExpressionFactory expressionFactory)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectableBeanManager

public InjectableBeanManager(javax.enterprise.inject.spi.BeanManager bm)

InjectableBeanManager

public InjectableBeanManager()
Method Detail

createAnnotatedType

public <T> javax.enterprise.inject.spi.AnnotatedType<T> createAnnotatedType(java.lang.Class<T> type)
Specified by:
createAnnotatedType in interface javax.enterprise.inject.spi.BeanManager

createCreationalContext

public <T> javax.enterprise.context.spi.CreationalContext<T> createCreationalContext(javax.enterprise.context.spi.Contextual<T> contextual)
Specified by:
createCreationalContext in interface javax.enterprise.inject.spi.BeanManager

createInjectionTarget

public <T> javax.enterprise.inject.spi.InjectionTarget<T> createInjectionTarget(javax.enterprise.inject.spi.AnnotatedType<T> type)
Specified by:
createInjectionTarget in interface javax.enterprise.inject.spi.BeanManager

fireEvent

public void fireEvent(java.lang.Object event,
                      java.lang.annotation.Annotation... qualifiers)
Specified by:
fireEvent in interface javax.enterprise.inject.spi.BeanManager

getBeans

public java.util.Set<javax.enterprise.inject.spi.Bean<?>> getBeans(java.lang.String name)
Specified by:
getBeans in interface javax.enterprise.inject.spi.BeanManager

getBeans

public java.util.Set<javax.enterprise.inject.spi.Bean<?>> getBeans(java.lang.reflect.Type beanType,
                                                                   java.lang.annotation.Annotation... qualifiers)
Specified by:
getBeans in interface javax.enterprise.inject.spi.BeanManager

getContext

public javax.enterprise.context.spi.Context getContext(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
Specified by:
getContext in interface javax.enterprise.inject.spi.BeanManager

getELResolver

public javax.el.ELResolver getELResolver()
Specified by:
getELResolver in interface javax.enterprise.inject.spi.BeanManager

getInjectableReference

public java.lang.Object getInjectableReference(javax.enterprise.inject.spi.InjectionPoint injectionPoint,
                                               javax.enterprise.context.spi.CreationalContext<?> ctx)
Specified by:
getInjectableReference in interface javax.enterprise.inject.spi.BeanManager

getInterceptorBindingDefinition

public java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier)
Specified by:
getInterceptorBindingDefinition in interface javax.enterprise.inject.spi.BeanManager

getPassivationCapableBean

public javax.enterprise.inject.spi.Bean<?> getPassivationCapableBean(java.lang.String id)
Specified by:
getPassivationCapableBean in interface javax.enterprise.inject.spi.BeanManager

getReference

public java.lang.Object getReference(javax.enterprise.inject.spi.Bean<?> bean,
                                     java.lang.reflect.Type beanType,
                                     javax.enterprise.context.spi.CreationalContext<?> ctx)
Specified by:
getReference in interface javax.enterprise.inject.spi.BeanManager

getStereotypeDefinition

public java.util.Set<java.lang.annotation.Annotation> getStereotypeDefinition(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Specified by:
getStereotypeDefinition in interface javax.enterprise.inject.spi.BeanManager

isInterceptorBinding

public boolean isInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
isInterceptorBinding in interface javax.enterprise.inject.spi.BeanManager

isNormalScope

public boolean isNormalScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
isNormalScope in interface javax.enterprise.inject.spi.BeanManager

isPassivatingScope

public boolean isPassivatingScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
isPassivatingScope in interface javax.enterprise.inject.spi.BeanManager

isQualifier

public boolean isQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
isQualifier in interface javax.enterprise.inject.spi.BeanManager

isScope

public boolean isScope(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
isScope in interface javax.enterprise.inject.spi.BeanManager

isStereotype

public boolean isStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Specified by:
isStereotype in interface javax.enterprise.inject.spi.BeanManager

resolve

public <X> javax.enterprise.inject.spi.Bean<? extends X> resolve(java.util.Set<javax.enterprise.inject.spi.Bean<? extends X>> beans)
Specified by:
resolve in interface javax.enterprise.inject.spi.BeanManager

resolveDecorators

public java.util.List<javax.enterprise.inject.spi.Decorator<?>> resolveDecorators(java.util.Set<java.lang.reflect.Type> types,
                                                                                  java.lang.annotation.Annotation... qualifiers)
Specified by:
resolveDecorators in interface javax.enterprise.inject.spi.BeanManager

resolveInterceptors

public java.util.List<javax.enterprise.inject.spi.Interceptor<?>> resolveInterceptors(javax.enterprise.inject.spi.InterceptionType type,
                                                                                      java.lang.annotation.Annotation... interceptorBindings)
Specified by:
resolveInterceptors in interface javax.enterprise.inject.spi.BeanManager

resolveObserverMethods

public <T> java.util.Set<javax.enterprise.inject.spi.ObserverMethod<? super T>> resolveObserverMethods(T event,
                                                                                                       java.lang.annotation.Annotation... qualifiers)
Specified by:
resolveObserverMethods in interface javax.enterprise.inject.spi.BeanManager

validate

public void validate(javax.enterprise.inject.spi.InjectionPoint injectionPoint)
Specified by:
validate in interface javax.enterprise.inject.spi.BeanManager

wrapExpressionFactory

public javax.el.ExpressionFactory wrapExpressionFactory(javax.el.ExpressionFactory expressionFactory)
Specified by:
wrapExpressionFactory in interface javax.enterprise.inject.spi.BeanManager

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.