Tabnine Logo
BeforeBeanDiscovery.addScope
Code IndexAdd Tabnine to your IDE (free)

How to use
addScope
method
in
javax.enterprise.inject.spi.BeforeBeanDiscovery

Best Java code snippets using javax.enterprise.inject.spi.BeforeBeanDiscovery.addScope (Showing top 20 results out of 333)

origin: wildfly/wildfly

  public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager manager) {
    event.addScope(ViewScoped.class, true, true);
  }
}
origin: camunda/camunda-bpm-platform

public void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery event, BeanManager manager) {
 event.addScope(BusinessProcessScoped.class, true, true);
 
 BeanManagerLookup.localInstance = manager;
}
origin: org.jboss.cdi.tck/cdi-tck-impl

  void execute() {
    event.addScope(SimpleAnnotation.class, true, false);
  }
}.run();
origin: org.apache.myfaces.core/myfaces-impl

void beforeBeanDiscovery(@Observes BeforeBeanDiscovery event, BeanManager beanManager)
{
  event.addScope(FacesScoped.class, true, false);
  event.addScope(ViewTransientScoped.class, true, false);
}

origin: org.glassfish.ozark/ozark

/**
 * Before bean discovery.
 *
 * @param event the event.
 * @param beanManager the bean manager.
 */
public void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery event, BeanManager beanManager) {
  event.addScope(RedirectScoped.class, true, true);
}
origin: org.camunda.bpm/camunda-engine-cdi

public void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery event, BeanManager manager) {
 event.addScope(BusinessProcessScoped.class, true, true);
 
 BeanManagerLookup.localInstance = manager;
}
origin: org.jboss.seam.faces/seam-faces

public void addScope(@Observes final BeforeBeanDiscovery event)
{
 event.addScope(FlashScoped.class, true, true);
}
origin: org.jboss.seam.faces/seam-faces

public void addScope(@Observes final BeforeBeanDiscovery event)
{
 event.addScope(ViewScoped.class, true, true);
}
origin: org.jboss.jsr299.tck/jsr299-tck-impl

public void observe(@Observes BeforeBeanDiscovery beforeBeanDiscovery)
{
 beforeBeanDiscovery.addScope(EpochScoped.class, true, false);
}
origin: ch.inftec.ju/ju-util-ee

public void addScope(@Observes final BeforeBeanDiscovery event) {
  logger.debug("Adding Scope ContainerTestScoped");
  event.addScope(ContainerTestScoped.class, true, false);
}
origin: kiegroup/appformer

public void beforeBeanDiscovery(@Observes BeforeBeanDiscovery bbd) {
  if (logger.isDebugEnabled()) {
    logger.debug("Before bean discovery, adding WosrkspaceScoped");
  }
  bbd.addScope(WorkspaceScoped.class,
         true,
         false);
}
origin: org.apache.myfaces.extensions.cdi.bundles/myfaces-extcdi-bundle-jsf20

public void addViewScoped(@Observes BeforeBeanDiscovery beforeBeanDiscovery)
{
  if(!isActivated())
  {
    return;
  }
  beforeBeanDiscovery.addScope(ViewScoped.class, true, true);
}
origin: org.jboss.cdi.tck/cdi-tck-impl

public void addScope(@Observes BeforeBeanDiscovery beforeBeanDiscovery) {
  setObserved(true);
  beforeBeanDiscovery.addScope(EpochScoped.class, false, false);
}
origin: org.apache.myfaces.core/myfaces-impl

void beforeBeanDiscovery(
  @Observes final BeforeBeanDiscovery event, BeanManager beanManager)
{
  event.addScope(FlowScoped.class, true, true);
  // Register FlowBuilderFactoryBean as a bean with CDI annotations, so the system
  // can take it into account, and use it later when necessary.
  AnnotatedType bean = beanManager.createAnnotatedType(FlowScopeBeanHolder.class);
  event.addAnnotatedType(bean, bean.getJavaClass().getName());
}

origin: org.apache.myfaces.core/myfaces-impl

void beforeBeanDiscovery(
  @Observes final BeforeBeanDiscovery event, BeanManager beanManager)
{
  event.addScope(ViewScoped.class, true, true);
  // Register ViewScopeBeanHolder as a bean with CDI annotations, so the system
  // can take it into account, and use it later when necessary.
  AnnotatedType bean = beanManager.createAnnotatedType(ViewScopeBeanHolder.class);
  event.addAnnotatedType(bean, bean.getJavaClass().getName());
}

origin: org.jboss.jsr299.tck/jsr299-tck-impl

public void observe(@Observes BeforeBeanDiscovery beforeBeanDiscovery)
{
 setObserved(true);
 beforeBeanDiscovery.addQualifier(Tame.class);
 beforeBeanDiscovery.addScope(EpochScoped.class, false, false);
}
origin: org.jboss.narayana.jta/cdi

public void register(@Observes BeforeBeanDiscovery bbd, BeanManager bm) {        
  
  bbd.addScope(TransactionScoped.class, true, true);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorMandatory.class), TransactionalInterceptorMandatory.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNever.class), TransactionalInterceptorNever.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNotSupported.class), TransactionalInterceptorNotSupported.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequired.class), TransactionalInterceptorRequired.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequiresNew.class), TransactionalInterceptorRequiresNew.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorSupports.class), TransactionalInterceptorSupports.class.getName() + TX_INTERCEPTOR);
}
origin: jbosstm/narayana

public void register(@Observes BeforeBeanDiscovery bbd, BeanManager bm) {        
  
  bbd.addScope(TransactionScoped.class, true, true);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorMandatory.class), TransactionalInterceptorMandatory.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNever.class), TransactionalInterceptorNever.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNotSupported.class), TransactionalInterceptorNotSupported.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequired.class), TransactionalInterceptorRequired.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequiresNew.class), TransactionalInterceptorRequiresNew.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorSupports.class), TransactionalInterceptorSupports.class.getName() + TX_INTERCEPTOR);
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

public void register(@Observes BeforeBeanDiscovery bbd, BeanManager bm) {        
  
  bbd.addScope(TransactionScoped.class, true, true);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorMandatory.class), TransactionalInterceptorMandatory.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNever.class), TransactionalInterceptorNever.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNotSupported.class), TransactionalInterceptorNotSupported.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequired.class), TransactionalInterceptorRequired.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequiresNew.class), TransactionalInterceptorRequiresNew.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorSupports.class), TransactionalInterceptorSupports.class.getName() + TX_INTERCEPTOR);
}
origin: jbosstm/narayana

public void register(@Observes BeforeBeanDiscovery bbd, BeanManager bm) {        
  
  bbd.addScope(TransactionScoped.class, true, true);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorMandatory.class), TransactionalInterceptorMandatory.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNever.class), TransactionalInterceptorNever.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorNotSupported.class), TransactionalInterceptorNotSupported.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequired.class), TransactionalInterceptorRequired.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorRequiresNew.class), TransactionalInterceptorRequiresNew.class.getName() + TX_INTERCEPTOR);
  bbd.addAnnotatedType(bm.createAnnotatedType(TransactionalInterceptorSupports.class), TransactionalInterceptorSupports.class.getName() + TX_INTERCEPTOR);
}
javax.enterprise.inject.spiBeforeBeanDiscoveryaddScope

Javadoc

Declares an annotation type as a javax.enterprise.context.

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.

Popular methods of BeforeBeanDiscovery

  • addAnnotatedType
    Adds new annotated type for classes which are not picked up by the CDI container or if you like to a
  • addInterceptorBinding
    Declare a new interceptor binding via the information from the given AnnotatedType.
  • addQualifier
    Declare a new qualifier via the information from the given AnnotatedType.
  • addStereotype
    Declares a new stereotype.
  • configureInterceptorBinding
    Obtains a new AnnotatedTypeConfigurator to configure a new javax.enterprise.inject.spi.AnnotatedTyp
  • configureQualifier
    Obtains a new AnnotatedTypeConfigurator to configure a new javax.enterprise.inject.spi.AnnotatedTyp

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now