javax.enterprise.inject.spi
Interface BeforeBeanDiscovery

All Known Implementing Classes:
BeforeBeanDiscoveryImpl

public interface BeforeBeanDiscovery

Extension callback before any bean discovery, so extensions can add annotated types, stereotypes and binding types.

 public class MyExtension implements Extension
 {
  public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event)
  {
    ...
  }
 }
 


Method Summary
 void addAnnotatedType(AnnotatedType<?> type)
          Registers an annotated type with the BeanManager, used by extensions to register configured beans.
 void addInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation> bindingType, java.lang.annotation.Annotation... bindingTypeDef)
           
 void addQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier)
          Registers an annotation as a binding type, so applications can use existing annotations for binding without modifying the annotation source.
 void addScope(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType, boolean isNormal, boolean isPassivating)
           
 void addStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype, java.lang.annotation.Annotation... stereotypeDef)
           
 

Method Detail

addAnnotatedType

void addAnnotatedType(AnnotatedType<?> type)
Registers an annotated type with the BeanManager, used by extensions to register configured beans.

Parameters:
type - the abstract introspected type for the new bean

addInterceptorBinding

void addInterceptorBinding(java.lang.Class<? extends java.lang.annotation.Annotation> bindingType,
                           java.lang.annotation.Annotation... bindingTypeDef)

addQualifier

void addQualifier(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier)
Registers an annotation as a binding type, so applications can use existing annotations for binding without modifying the annotation source.

Parameters:
bindingType - the annotation to register as a binding type.

addScope

void addScope(java.lang.Class<? extends java.lang.annotation.Annotation> scopeType,
              boolean isNormal,
              boolean isPassivating)

addStereotype

void addStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype,
                   java.lang.annotation.Annotation... stereotypeDef)