public class InjectableBeanManager extends Object implements BeanManager, 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.
| Constructor and Description |
|---|
InjectableBeanManager()
Used by serialization.
|
InjectableBeanManager(BeanManagerImpl beanManager) |
public InjectableBeanManager()
public InjectableBeanManager(BeanManagerImpl beanManager)
public <T> AnnotatedType<T> createAnnotatedType(Class<T> type)
createAnnotatedType in interface BeanManagerpublic <T> CreationalContext<T> createCreationalContext(Contextual<T> contextual)
createCreationalContext in interface BeanManagerpublic <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type)
createInjectionTarget in interface BeanManagerpublic void fireEvent(Object event, Annotation... qualifiers)
fireEvent in interface BeanManagerpublic Event<Object> getEvent()
getEvent in interface BeanManagerpublic Set<Bean<?>> getBeans(String name)
getBeans in interface BeanManagerpublic Set<Bean<?>> getBeans(Type beanType, Annotation... qualifiers)
getBeans in interface BeanManagerpublic Context getContext(Class<? extends Annotation> scope)
getContext in interface BeanManagerpublic Instance<Object> createInstance()
createInstance in interface BeanManagerpublic ELResolver getELResolver()
getELResolver in interface BeanManagerpublic Object getInjectableReference(InjectionPoint injectionPoint, CreationalContext<?> ctx)
getInjectableReference in interface BeanManagerpublic Set<Annotation> getInterceptorBindingDefinition(Class<? extends Annotation> qualifier)
getInterceptorBindingDefinition in interface BeanManagerpublic Bean<?> getPassivationCapableBean(String id)
getPassivationCapableBean in interface BeanManagerpublic Object getReference(Bean<?> bean, Type beanType, CreationalContext<?> ctx)
getReference in interface BeanManagerpublic Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype)
getStereotypeDefinition in interface BeanManagerpublic boolean isInterceptorBinding(Class<? extends Annotation> annotationType)
isInterceptorBinding in interface BeanManagerpublic boolean isNormalScope(Class<? extends Annotation> annotationType)
isNormalScope in interface BeanManagerpublic boolean isPassivatingScope(Class<? extends Annotation> annotationType)
isPassivatingScope in interface BeanManagerpublic boolean isQualifier(Class<? extends Annotation> annotationType)
isQualifier in interface BeanManagerpublic boolean isScope(Class<? extends Annotation> annotationType)
isScope 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 <T> InterceptionFactory<T> createInterceptionFactory(CreationalContext<T> creationalContext, Class<T> aClass)
createInterceptionFactory in interface BeanManagerpublic List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
resolveDecorators in interface BeanManagerpublic List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
resolveInterceptors in interface BeanManagerpublic <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... qualifiers)
resolveObserverMethods in interface BeanManagerpublic void validate(InjectionPoint injectionPoint)
validate in interface BeanManagerpublic ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory)
wrapExpressionFactory in interface BeanManagerpublic boolean areQualifiersEquivalent(Annotation qualifier1, Annotation qualifier2)
areQualifiersEquivalent in interface BeanManagerpublic int getQualifierHashCode(Annotation qualifier)
getQualifierHashCode in interface BeanManagerpublic boolean areInterceptorBindingsEquivalent(Annotation interceptorBinding1, Annotation interceptorBinding2)
areInterceptorBindingsEquivalent in interface BeanManagerpublic int getInterceptorBindingHashCode(Annotation interceptorBinding)
getInterceptorBindingHashCode in interface BeanManagerpublic InjectionPoint createInjectionPoint(AnnotatedField<?> field)
createInjectionPoint in interface BeanManagerpublic InjectionPoint createInjectionPoint(AnnotatedParameter<?> parameter)
createInjectionPoint in interface BeanManagerpublic <T> InjectionTargetFactory<T> getInjectionTargetFactory(AnnotatedType<T> type)
getInjectionTargetFactory in interface BeanManagerpublic <X> ProducerFactory<X> getProducerFactory(AnnotatedField<? super X> field, Bean<X> declaringBean)
getProducerFactory in interface BeanManagerpublic <X> ProducerFactory<X> getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> declaringBean)
getProducerFactory in interface BeanManagerpublic <T> BeanAttributes<T> createBeanAttributes(AnnotatedType<T> type)
createBeanAttributes in interface BeanManagerpublic BeanAttributes<?> createBeanAttributes(AnnotatedMember<?> member)
createBeanAttributes in interface BeanManagerpublic <T> Bean<T> createBean(BeanAttributes<T> attributes, Class<T> beanClass, InjectionTargetFactory<T> injectionTargetFactory)
createBean in interface BeanManagerpublic <T,X> Bean<T> createBean(BeanAttributes<T> attributes, Class<X> beanClass, ProducerFactory<X> producerFactory)
createBean in interface BeanManagerpublic <T extends Extension> T getExtension(Class<T> extensionClass)
getExtension in interface BeanManagerpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.