Package org.jboss.weld.bootstrap
Class BeanDeployerEnvironment
- java.lang.Object
-
- org.jboss.weld.bootstrap.BeanDeployerEnvironment
-
public class BeanDeployerEnvironment extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
BeanDeployerEnvironment.WeldMethodKey
-
Constructor Summary
Constructors Modifier Constructor Description protected
BeanDeployerEnvironment(Set<SlimAnnotatedTypeContext<?>> annotatedTypes, Set<Class<?>> vetoedClasses, SetMultimap<Class<?>,AbstractClassBean<?>> classBeanMap, Set<ProducerField<?,?>> producerFields, SetMultimap<BeanDeployerEnvironment.WeldMethodKey,ProducerMethod<?,?>> producerMethodBeanMap, Set<RIBean<?>> beans, Set<ObserverInitializationContext<?,?>> observers, Set<DisposalMethod<?,?>> allDisposalBeans, Set<DisposalMethod<?,?>> resolvedDisposalBeans, Set<DecoratorImpl<?>> decorators, Set<InterceptorImpl<?>> interceptors, Set<Type> newBeanTypes, BeanManagerImpl manager)
protected
BeanDeployerEnvironment(BeanManagerImpl manager)
-
Method Summary
-
-
-
Constructor Detail
-
BeanDeployerEnvironment
protected BeanDeployerEnvironment(BeanManagerImpl manager)
-
BeanDeployerEnvironment
protected BeanDeployerEnvironment(Set<SlimAnnotatedTypeContext<?>> annotatedTypes, Set<Class<?>> vetoedClasses, SetMultimap<Class<?>,AbstractClassBean<?>> classBeanMap, Set<ProducerField<?,?>> producerFields, SetMultimap<BeanDeployerEnvironment.WeldMethodKey,ProducerMethod<?,?>> producerMethodBeanMap, Set<RIBean<?>> beans, Set<ObserverInitializationContext<?,?>> observers, Set<DisposalMethod<?,?>> allDisposalBeans, Set<DisposalMethod<?,?>> resolvedDisposalBeans, Set<DecoratorImpl<?>> decorators, Set<InterceptorImpl<?>> interceptors, Set<Type> newBeanTypes, BeanManagerImpl manager)
-
-
Method Detail
-
addAnnotatedType
public void addAnnotatedType(SlimAnnotatedTypeContext<?> annotatedType)
-
addAnnotatedTypes
public void addAnnotatedTypes(Collection<SlimAnnotatedTypeContext<?>> annotatedTypes)
-
addSyntheticAnnotatedType
public void addSyntheticAnnotatedType(SlimAnnotatedType<?> annotatedType, jakarta.enterprise.inject.spi.Extension extension)
-
getAnnotatedTypes
public Set<SlimAnnotatedTypeContext<?>> getAnnotatedTypes()
-
removeAnnotatedType
public void removeAnnotatedType(SlimAnnotatedTypeContext<?> annotatedType)
-
removeAnnotatedTypes
public void removeAnnotatedTypes(Collection<SlimAnnotatedTypeContext<?>> annotatedTypes)
-
vetoJavaClass
public void vetoJavaClass(Class<?> javaClass)
-
isVetoed
public boolean isVetoed(Class<?> clazz)
-
getProducerMethod
public Set<ProducerMethod<?,?>> getProducerMethod(Class<?> declaringClass, MethodSignature signature)
-
getClassBeans
public Set<AbstractClassBean<?>> getClassBeans(Class<?> clazz)
-
addProducerMethod
public void addProducerMethod(ProducerMethod<?,?> bean)
-
addProducerField
public void addProducerField(ProducerField<?,?> bean)
-
addExtension
public void addExtension(ExtensionBean<?> bean)
-
addBuiltInBean
public void addBuiltInBean(AbstractBuiltInBean<?> bean)
-
addAbstractClassBean
protected void addAbstractClassBean(AbstractClassBean<?> bean)
-
addManagedBean
public void addManagedBean(ManagedBean<?> bean)
-
addSessionBean
public void addSessionBean(SessionBean<?> bean)
-
addAbstractBean
protected void addAbstractBean(AbstractBean<?,?> bean)
-
addDecorator
public void addDecorator(DecoratorImpl<?> bean)
-
addInterceptor
public void addInterceptor(InterceptorImpl<?> bean)
-
addDisposesMethod
public void addDisposesMethod(DisposalMethod<?,?> bean)
-
addObserverMethod
public void addObserverMethod(ObserverInitializationContext<?,?> observerInitializer)
-
addNewBeansFromInjectionPoints
public void addNewBeansFromInjectionPoints(AbstractBean<?,?> bean)
-
addNewBeansFromInjectionPoints
public void addNewBeansFromInjectionPoints(Set<? extends jakarta.enterprise.inject.spi.InjectionPoint> injectionPoints)
-
getDecorators
public Set<DecoratorImpl<?>> getDecorators()
-
getInterceptors
public Set<InterceptorImpl<?>> getInterceptors()
-
getObservers
public Set<ObserverInitializationContext<?,?>> getObservers()
-
getUnresolvedDisposalBeans
public Set<DisposalMethod<?,?>> getUnresolvedDisposalBeans()
-
resolveDisposalBeans
public <X> Set<DisposalMethod<X,?>> resolveDisposalBeans(Set<Type> types, Set<Annotation> qualifiers, AbstractClassBean<X> declaringBean)
Resolve the disposal method for the given producer method. Any resolved beans will be marked as such for the purpose of validating that all disposal methods are used. For internal use.- Parameters:
types
- the typesqualifiers
- The binding types to matchdeclaringBean
- declaring bean- Returns:
- The set of matching disposal methods
-
vetoBean
public void vetoBean(AbstractBean<?,?> bean)
-
getClassBeans
public Iterable<AbstractClassBean<?>> getClassBeans()
-
getProducerMethodBeans
public Iterable<ProducerMethod<?,?>> getProducerMethodBeans()
-
getProducerFields
public Set<ProducerField<?,?>> getProducerFields()
-
cleanup
public void cleanup()
-
trim
public void trim()
-
-