use of org.jboss.weld.environment.se.Weld in project jersey by jersey.
the class GrizzlyApp method start.
protected static void start() {
weld = new Weld();
weld.initialize();
server = GrizzlyHttpServerFactory.createHttpServer(BASE_URI, createJaxRsApp(), true);
}
use of org.jboss.weld.environment.se.Weld in project jersey by jersey.
the class AppScopedResourceTest method setUp.
@Override
public void setUp() throws Exception {
weld = new Weld();
weld.initialize();
super.setUp();
}
use of org.jboss.weld.environment.se.Weld in project jersey by jersey.
the class RequestScopeAlignmentTest method before.
@BeforeClass
public static void before() throws Exception {
weld = new Weld();
weld.initialize();
}
use of org.jboss.weld.environment.se.Weld in project jersey by jersey.
the class App method main.
public static void main(String[] args) {
try {
System.out.println("Jersey CDI Example App");
final Weld weld = new Weld();
weld.initialize();
final HttpServer server = GrizzlyHttpServerFactory.createHttpServer(BASE_URI, createJaxRsApp(), false);
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {
@Override
public void run() {
server.shutdownNow();
weld.shutdown();
}
}));
server.start();
System.out.println(String.format("Application started.\nTry out %s%s\nStop the application using CTRL+C", BASE_URI, "application.wadl"));
Thread.currentThread().join();
} catch (IOException | InterruptedException ex) {
Logger.getLogger(App.class.getName()).log(Level.SEVERE, null, ex);
}
}
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();
}
Aggregations