Package org.apache.deltaspike.cdise.api

Examples of org.apache.deltaspike.cdise.api.CdiContainer.boot()


    @Test
    public void testBootRequest() throws Exception
    {
        CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer();
        cdiContainer.boot();
        cdiContainer.getContextControl().startContexts();
        int port = createServer();
        testRead(port);
        shutdown();
    }
View Full Code Here


public class Main {
    public static void main(String[] args) {
        Util.feedBack("Starting CDI Container");
        // Start the CDI container
        CdiContainer cdiContainer = CdiContainerLoader.getCdiContainer();
        cdiContainer.boot();

        // Starting the application-context allows to use @ApplicationScoped beans
        ContextControl contextControl = cdiContainer.getContextControl();
        contextControl.startContext(ApplicationScoped.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.