Search in sources :

Example 16 with Weld

use of org.jboss.weld.environment.se.Weld in project drools by kiegroup.

the class CDIExampleWithInclusion method main.

public static void main(String[] args) {
    Weld w = new Weld();
    WeldContainer wc = w.initialize();
    CDIExampleWithInclusion bean = wc.instance().select(CDIExampleWithInclusion.class).get();
    bean.go(System.out);
    w.shutdown();
}
Also used : WeldContainer(org.jboss.weld.environment.se.WeldContainer) Weld(org.jboss.weld.environment.se.Weld)

Example 17 with Weld

use of org.jboss.weld.environment.se.Weld in project drools by kiegroup.

the class CDIInstanceExample method main.

public static void main(String[] args) {
    Weld w = new Weld();
    WeldContainer wc = w.initialize();
    CDIInstanceExample bean = wc.instance().select(CDIInstanceExample.class).get();
    bean.go(System.out);
    w.shutdown();
}
Also used : WeldContainer(org.jboss.weld.environment.se.WeldContainer) Weld(org.jboss.weld.environment.se.Weld)

Example 18 with Weld

use of org.jboss.weld.environment.se.Weld in project jetty.project by eclipse.

the class ScopeBasicsTest method startWeld.

@BeforeClass
public static void startWeld() {
    Logging.config();
    weld = new Weld();
    container = weld.initialize();
}
Also used : Weld(org.jboss.weld.environment.se.Weld) BeforeClass(org.junit.BeforeClass)

Example 19 with Weld

use of org.jboss.weld.environment.se.Weld in project jersey by jersey.

the class RawCdiTest method setUp.

@Override
public void setUp() throws Exception {
    if (!ExternalTestContainerFactory.class.isAssignableFrom(getTestContainerFactory().getClass())) {
        weld = new Weld();
        weld.initialize();
    }
    super.setUp();
}
Also used : ExternalTestContainerFactory(org.glassfish.jersey.test.external.ExternalTestContainerFactory) Weld(org.jboss.weld.environment.se.Weld)

Example 20 with Weld

use of org.jboss.weld.environment.se.Weld in project jersey by jersey.

the class CdiTest method setUp.

@Override
public void setUp() throws Exception {
    weld = new Weld();
    weld.initialize();
    super.setUp();
}
Also used : Weld(org.jboss.weld.environment.se.Weld)

Aggregations

Weld (org.jboss.weld.environment.se.Weld)36 WeldContainer (org.jboss.weld.environment.se.WeldContainer)12 Test (org.junit.Test)9 BeforeClass (org.junit.BeforeClass)6 ByteArrayOutputStream (java.io.ByteArrayOutputStream)3 PrintStream (java.io.PrintStream)3 ArrayList (java.util.ArrayList)2 KieServicesImpl (org.drools.compiler.kie.builder.impl.KieServicesImpl)2 Before (org.junit.Before)2 File (java.io.File)1 IOException (java.io.IOException)1 URL (java.net.URL)1 URLClassLoader (java.net.URLClassLoader)1 Bean (javax.enterprise.inject.spi.Bean)1 BeanManager (javax.enterprise.inject.spi.BeanManager)1 Extension (javax.enterprise.inject.spi.Extension)1 Bus (org.apache.cxf.Bus)1 BootOptions (org.commonjava.indy.boot.BootOptions)1 BootStatus (org.commonjava.indy.boot.BootStatus)1 KieContainerImpl (org.drools.compiler.kie.builder.impl.KieContainerImpl)1