congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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