public class BeanManagerImpl extends Object implements WeldManager, Serializable
public static BeanManagerImpl newRootManager(String contextId, String id, ServiceRegistry serviceRegistry)
serviceRegistry - public static BeanManagerImpl newManager(BeanManagerImpl rootManager, String id, ServiceRegistry services)
public static BeanManagerImpl newChildActivityManager(BeanManagerImpl parentManager)
parentManager - the parent managerpublic String getContextId()
public void addAccessibleBeanManager(BeanManagerImpl accessibleBeanManager)
public HashSet<BeanManagerImpl> getAccessibleManagers()
public void addBean(Bean<?> bean)
public void addBeans(Collection<? extends Bean<?>> beans)
beans - public void addDecorator(Decorator<?> bean)
public <T> Set<ObserverMethod<? super T>> resolveObserverMethods(T event, Annotation... bindings)
resolveObserverMethods in interface BeanManagerpublic void addInterceptor(Interceptor<?> bean)
public ModuleEnablement getEnabled()
public void setEnabled(ModuleEnablement enabled)
public boolean isBeanEnabled(Bean<?> bean)
public Set<Bean<?>> getBeans(Type beanType, Annotation... qualifiers)
getBeans in interface BeanManagerpublic Set<Bean<?>> getBeans(Type beanType, Set<Annotation> qualifiers)
public Set<Bean<?>> getBeans(InjectionPoint injectionPoint)
protected void registerBeanNamespace(Bean<?> bean)
public Map<EjbDescriptor<?>,SessionBean<?>> getEnterpriseBeans()
public List<Bean<?>> getBeans()
public List<Interceptor<?>> getInterceptors()
public Iterable<Interceptor<?>> getAccessibleInterceptors()
public void addContext(Context context)
public void addObserver(ObserverMethod<?> observer)
observer - =public void fireEvent(Object event, Annotation... qualifiers)
fireEvent in interface BeanManagerevent - The event object to pass alongqualifiers - The binding types to matchBeanManager.fireEvent(java.lang.Object,
java.lang.annotation.Annotation[])public Context getContext(Class<? extends Annotation> scopeType)
getContext in interface BeanManagerscopeType - The scope to matchIllegalStateException - if there are multiple active scopes for a given contextBeanManager.getContext(java.lang.Class)public Context getUnwrappedContext(Class<? extends Annotation> scopeType)
public boolean isContextActive(Class<? extends Annotation> scopeType)
scopeType - IllegalStateException - if there are multiple active scopes for a given contextpublic Object getReference(Bean<?> bean, Type requestedType, CreationalContext<?> creationalContext, boolean noProxy)
public Object getReference(Bean<?> bean, Type requestedType, CreationalContext<?> creationalContext)
getReference in interface BeanManagerpublic Object getReference(InjectionPoint injectionPoint, Bean<?> resolvedBean, CreationalContext<?> creationalContext)
injectionPoint - the injection point to registerresolvedBean - the bean to get a reference tocreationalContext - the creationalContextpublic Object getInjectableReference(InjectionPoint injectionPoint, CreationalContext<?> creationalContext)
getInjectableReference in interface BeanManagerpublic <T> Bean<T> getBean(Resolvable resolvable)
public Set<Bean<?>> getBeans(String name)
getBeans in interface BeanManagerpublic List<Decorator<?>> resolveDecorators(Set<Type> types, Annotation... qualifiers)
resolveDecorators in interface BeanManagerpublic List<Decorator<?>> resolveDecorators(Set<Type> types, Set<Annotation> qualifiers)
public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
resolveInterceptors in interface BeanManagertype - The interception type to resolveinterceptorBindings - The binding types to matchBeanManager.resolveInterceptors(javax.enterprise.inject.spi.InterceptionType,
java.lang.annotation.Annotation[])public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Collection<Annotation> interceptorBindings)
type - The interception type to resolveinterceptorBindings - The binding types to matchpublic TypeSafeBeanResolver getBeanResolver()
public TypeSafeDecoratorResolver getDecoratorResolver()
public TypeSafeInterceptorResolver getInterceptorResolver()
public NameBasedResolver getNameBasedResolver()
public ObserverNotifier getAccessibleLenientObserverNotifier()
ObserverNotifierpublic ObserverNotifier getGlobalLenientObserverNotifier()
ObserverNotifierpublic ObserverNotifier getGlobalStrictObserverNotifier()
ObserverNotifierpublic String toString()
public BeanManagerImpl createActivity()
WeldManagercreateActivity in interface WeldManagerpublic BeanManagerImpl setCurrent(Class<? extends Annotation> scopeType)
WeldManagersetCurrent in interface WeldManagerscopeType - the scope to associate the activity withpublic BeanManagerImpl getCurrent()
getCurrent in interface WeldManagerWeldManager that corresponds to the current activitypublic ServiceRegistry getServices()
WeldManagergetServices in interface WeldManagerprotected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic ClientProxyProvider getClientProxyProvider()
protected Map<Class<? extends Annotation>,List<Context>> getContexts()
public String getId()
WeldManagergetId in interface WeldManagerpublic AtomicInteger getChildIds()
public List<ObserverMethod<?>> getObservers()
public Namespace getRootNamespace()
public <T> InjectionTarget<T> createInjectionTarget(AnnotatedType<T> type)
createInjectionTarget in interface BeanManagerpublic <T> InjectionTarget<T> createInjectionTarget(EjbDescriptor<T> descriptor)
WeldManager#fireProcessInjectionTarget()
must be used to obtain an InjectionTarget for non-contextual EJB injection.createInjectionTarget in interface WeldManagerpublic void validate(InjectionPoint ij)
validate in interface BeanManagerpublic Set<Annotation> getInterceptorBindingDefinition(Class<? extends Annotation> bindingType)
getInterceptorBindingDefinition in interface BeanManagerpublic Bean<?> getPassivationCapableBean(String id)
getPassivationCapableBean in interface BeanManagerpublic Bean<?> getPassivationCapableBean(BeanIdentifier identifier)
getPassivationCapableBean in interface WeldManagerpublic 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 isNormalScope(Class<? extends Annotation> annotationType)
isNormalScope in interface BeanManagerpublic boolean isPassivatingScope(Class<? extends Annotation> annotationType)
isPassivatingScope in interface BeanManagerpublic boolean isScope(Class<? extends Annotation> annotationType)
isScope in interface BeanManagerpublic boolean isStereotype(Class<? extends Annotation> annotationType)
isStereotype in interface BeanManagerpublic ELResolver getELResolver()
getELResolver in interface BeanManagerpublic ExpressionFactory wrapExpressionFactory(ExpressionFactory expressionFactory)
wrapExpressionFactory in interface BeanManagerpublic <T> WeldCreationalContext<T> createCreationalContext(Contextual<T> contextual)
createCreationalContext in interface BeanManagercreateCreationalContext in interface WeldManagerpublic <T> AnnotatedType<T> createAnnotatedType(Class<T> type)
createAnnotatedType in interface BeanManagerpublic <T> EnhancedAnnotatedType<T> createEnhancedAnnotatedType(Class<T> type)
public <X> Bean<? extends X> resolve(Set<Bean<? extends X>> beans)
resolve in interface BeanManagerpublic <T> EjbDescriptor<T> getEjbDescriptor(String beanName)
WeldManagergetEjbDescriptor in interface WeldManagerpublic <T> SessionBean<T> getBean(EjbDescriptor<T> descriptor)
WeldManagergetBean in interface WeldManagerpublic void cleanup()
public void cleanupAfterBoot()
public ConcurrentMap<SlimAnnotatedType<?>,InterceptionModel> getInterceptorModelRegistry()
public InterceptorMetadataReader getInterceptorMetadataReader()
public <X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> annotatedType)
WeldManagerfireProcessInjectionTarget in interface WeldManagerpublic <X> InjectionTarget<X> fireProcessInjectionTarget(AnnotatedType<X> annotatedType, InjectionTarget<X> injectionTarget)
WeldManagerfireProcessInjectionTarget in interface WeldManagerpublic Set<QualifierInstance> extractInterceptorBindingsForQualifierInstance(Iterable<QualifierInstance> annotations)
public Instance<Object> instance()
instance in interface WeldManagerpublic <T> BeanAttributes<T> createBeanAttributes(AnnotatedType<T> type)
createBeanAttributes in interface BeanManagerpublic BeanAttributes<?> createBeanAttributes(AnnotatedMember<?> member)
createBeanAttributes in interface BeanManagerpublic <X> BeanAttributes<?> internalCreateBeanAttributes(AnnotatedMember<X> member)
public <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 FieldInjectionPointAttributes<?,?> createInjectionPoint(AnnotatedField<?> field)
createInjectionPoint in interface BeanManagerpublic ParameterInjectionPointAttributes<?,?> createInjectionPoint(AnnotatedParameter<?> parameter)
createInjectionPoint in interface BeanManagerpublic <T extends Extension> T getExtension(Class<T> extensionClass)
getExtension in interface BeanManagerpublic ContainerLifecycleEvents getContainerLifecycleEvents()
public boolean areQualifiersEquivalent(Annotation qualifier1, Annotation qualifier2)
areQualifiersEquivalent in interface BeanManagerpublic boolean areInterceptorBindingsEquivalent(Annotation interceptorBinding1, Annotation interceptorBinding2)
areInterceptorBindingsEquivalent in interface BeanManagerpublic int getQualifierHashCode(Annotation qualifier)
getQualifierHashCode in interface BeanManagerpublic int getInterceptorBindingHashCode(Annotation interceptorBinding)
getInterceptorBindingHashCode in interface BeanManagerpublic <T> InjectionTargetFactoryImpl<T> getLocalInjectionTargetFactory(AnnotatedType<T> type)
InjectionTargetFactory for a given type. The factory will be using this BeanManager.public <T> WeldInjectionTargetFactory<T> getInjectionTargetFactory(AnnotatedType<T> type)
InjectionTargetFactory for a given type. The BeanManager for the InjectionTarget will
be inferred using CDI11Deployment.getBeanDeploymentArchive(Class).getInjectionTargetFactory in interface BeanManagergetInjectionTargetFactory in interface WeldManagerpublic <X> FieldProducerFactory<X> getProducerFactory(AnnotatedField<? super X> field, Bean<X> declaringBean)
getProducerFactory in interface BeanManagerpublic <X> MethodProducerFactory<X> getProducerFactory(AnnotatedMethod<? super X> method, Bean<X> declaringBean)
getProducerFactory in interface BeanManagerpublic <T> WeldInjectionTargetBuilder<T> createInjectionTargetBuilder(AnnotatedType<T> type)
WeldManagerWeldInjectionTargetBuilder which can be used to create a new WeldInjectionTarget for the specified type.createInjectionTargetBuilder in interface WeldManagertype - the specified typeWeldInjectionTargetBuilder instance for the specified typeCopyright © 2014 Seam Framework. All Rights Reserved.