public class BeforeBeanDiscoveryImpl extends AbstractAnnotatedTypeRegisteringEvent implements BeforeBeanDiscovery
Modifier | Constructor and Description |
---|---|
protected |
BeforeBeanDiscoveryImpl(BeanManagerImpl beanManager,
Deployment deployment,
Map<BeanDeploymentArchive,BeanDeployment> beanDeployments,
Collection<ContextHolder<? extends Context>> contexts) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotatedType(AnnotatedType<?> source)
Adds a given
AnnotatedType to the set of types which will be scanned during bean
discovery. |
void |
addAnnotatedType(AnnotatedType<?> type,
String id)
Adds a given
AnnotatedType to the set of types which will be scanned during bean
discovery. |
void |
addInterceptorBinding(AnnotatedType<? extends Annotation> bindingType)
Declares an annotation type as an interceptor binding type.
|
void |
addInterceptorBinding(Class<? extends Annotation> bindingType,
Annotation... bindingTypeDef)
Declares an annotation type as an interceptor binding type, and specifies its meta-annotations.
|
void |
addQualifier(AnnotatedType<? extends Annotation> qualifier)
Declares an annotation type as a Qualifier qualifier type.
|
void |
addQualifier(Class<? extends Annotation> bindingType)
Declares an annotation type as a Qualifier qualifier type.
|
void |
addScope(Class<? extends Annotation> scopeType,
boolean normal,
boolean passivating)
Declares an annotation type as a scope type.
|
void |
addStereotype(Class<? extends Annotation> stereotype,
Annotation... stereotypeDef)
Declares an annotation type as a stereotype, and specifies its
meta-annotations.
|
static void |
fire(BeanManagerImpl beanManager,
Deployment deployment,
Map<BeanDeploymentArchive,BeanDeployment> beanDeployments,
Collection<ContextHolder<? extends Context>> contexts) |
addSyntheticAnnotatedType, getSyntheticAnnotatedTypeSource, storeSyntheticAnnotatedType
getBeanDeployments, getDeployment, getOrCreateBeanDeployment, getTypeStore
fire
getActualTypeArguments, getBeanManager, getErrors, getObserverMethod, getRawType, getReceiver, setObserverMethod, setReceiver
protected BeforeBeanDiscoveryImpl(BeanManagerImpl beanManager, Deployment deployment, Map<BeanDeploymentArchive,BeanDeployment> beanDeployments, Collection<ContextHolder<? extends Context>> contexts)
public static void fire(BeanManagerImpl beanManager, Deployment deployment, Map<BeanDeploymentArchive,BeanDeployment> beanDeployments, Collection<ContextHolder<? extends Context>> contexts)
public void addQualifier(Class<? extends Annotation> bindingType)
BeforeBeanDiscovery
Declares an annotation type as a Qualifier qualifier type.
This is only required if you wish to make an annotation a qualifier without adding Qualifier
to it.
addQualifier
in interface BeforeBeanDiscovery
bindingType
- The annotation to treat as a qualifierpublic void addInterceptorBinding(Class<? extends Annotation> bindingType, Annotation... bindingTypeDef)
BeforeBeanDiscovery
Declares an annotation type as an interceptor binding type, and specifies its meta-annotations.
This is only required if you wish to make an annotation an interceptor binding type without adding
InterceptorBinding
to it.
addInterceptorBinding
in interface BeforeBeanDiscovery
bindingType
- The annotation type to treat as an interceptor binding typebindingTypeDef
- An optional list of annotations defining the interceptorpublic void addScope(Class<? extends Annotation> scopeType, boolean normal, boolean passivating)
BeforeBeanDiscovery
Declares an annotation type as a scope type.
This is only required if you wish to make an annotation a scope type without adding the NormalScope
or
Scope
annotations to it. You can also use this method to override an existing normal scope definition.
addScope
in interface BeforeBeanDiscovery
scopeType
- The annotation type to treat as a scope typenormal
- Indicates if the scope is normalpassivating
- Indicates if the scope is passivation
capableAfterBeanDiscovery.addContext(javax.enterprise.context.spi.Context)
public void addStereotype(Class<? extends Annotation> stereotype, Annotation... stereotypeDef)
BeforeBeanDiscovery
Declares an annotation type as a stereotype, and specifies its meta-annotations.
This is only required if you wish to make an annotation a stereotype without adding Stereotype
to it. You can
also use this method to override an existing stereotype definition.
addStereotype
in interface BeforeBeanDiscovery
stereotype
- The annotation type to treat as a stereotypestereotypeDef
- An optional list of annotations defining the stereotypepublic void addAnnotatedType(AnnotatedType<?> source)
BeforeBeanDiscovery
Adds a given AnnotatedType
to the set of types which will be scanned during bean
discovery.
This method is deprecated from CDI 1.1 and BeforeBeanDiscovery.addAnnotatedType(AnnotatedType, String)
should be used instead.
addAnnotatedType
in interface BeforeBeanDiscovery
source
- The AnnotatedType
to add for later scanningpublic void addAnnotatedType(AnnotatedType<?> type, String id)
BeforeBeanDiscovery
Adds a given AnnotatedType
to the set of types which will be scanned during bean
discovery.
This method allows multiple annotated types, based on the same underlying type, to be defined. AnnotatedType
s
discovered by the container use the fully qualified class name of AnnotatedType.getJavaClass()
to identify the
type.
AfterBeanDiscovery.getAnnotatedType(Class, String)
and AfterBeanDiscovery.getAnnotatedTypes(Class)
allows
annotated types to be obtained by identifier.
addAnnotatedType
in interface BeforeBeanDiscovery
type
- The AnnotatedType
to add for later scanningid
- The id of the annotated typepublic void addQualifier(AnnotatedType<? extends Annotation> qualifier)
BeforeBeanDiscovery
Declares an annotation type as a Qualifier qualifier type.
This is only required if you wish to make an annotation a qualifier without adding Qualifier
to it.
addQualifier
in interface BeforeBeanDiscovery
qualifier
- The annotation to treat as a qualifierpublic void addInterceptorBinding(AnnotatedType<? extends Annotation> bindingType)
BeforeBeanDiscovery
Declares an annotation type as an interceptor binding type.
This is only required if you wish to make an annotation an interceptor binding type without adding
InterceptorBinding
to it.
addInterceptorBinding
in interface BeforeBeanDiscovery
bindingType
- The annotation type to treat as an interceptor binding typeCopyright © 2013 Seam Framework. All Rights Reserved.