public interface BeforeBeanDiscovery
This event type is thrown by the container before the bean discovery process
begins. If any observer method of the BeforeBeanDiscovery
event
throws an exception, the exception is treated as a definition error by the
container.
Modifier and Type | Method and Description |
---|---|
void |
addAnnotatedType(AnnotatedType<?> type)
Adds a given
AnnotatedType to the set
of types which will be scanned during bean discovery. |
void |
addInterceptorBinding(Class<? extends Annotation> bindingType,
Annotation... bindingTypeDef)
Declares an annotation type as an interceptor
binding type, and specifies its meta-annotations.
|
void |
addQualifier(Class<? extends Annotation> qualifier)
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.
|
void addQualifier(Class<? extends Annotation> qualifier)
qualifier
- The annotation to treat as a qualifiervoid addScope(Class<? extends Annotation> scopeType, boolean normal, boolean passivating)
scopeType
- The annotation type to treat as a
scope typenormal
- Indicates if the scope is normalpassivating
- Indicates if the scope is
passivation capablevoid addStereotype(Class<? extends Annotation> stereotype, Annotation... stereotypeDef)
stereotype
- The annotation type to treat as a
stereotypestereotypeDef
- An optional list of annotations defining the
stereotypevoid addInterceptorBinding(Class<? extends Annotation> bindingType, Annotation... bindingTypeDef)
bindingType
- The annotation type to treat as an interceptor binding
typebindingTypeDef
- An optional list of annotations defining the interceptorvoid addAnnotatedType(AnnotatedType<?> type)
AnnotatedType
to the set
of types which will be scanned during bean discovery.type
- The AnnotatedType
to add
for later scanningCopyright © 2012 JBoss by Red Hat. All Rights Reserved.