Examples of newApplication()


Examples of org.impalaframework.module.spi.ApplicationFactory.newApplication()

        SimpleApplicationManager manager = new SimpleApplicationManager();
        ApplicationFactory applicationFactory = createMock(ApplicationFactory.class);
        manager.setApplicationFactory(applicationFactory);
       
        Application application = createMock(Application.class);
        expect(applicationFactory.newApplication(null)).andReturn(application);
       
        replay(applicationFactory);
       
        assertNull(manager.getCurrentApplication());
       
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

    {
        try
        {
            logger.info( "Starting Qi4j application" );
            Energy4Java qi4j = new Energy4Java();
            qi4jApp = qi4j.newApplication( getAssembler() );
            qi4jApp.activate();
            qi4jModule = qi4jApp.findModule( defaultLayerName(), defaultModuleName() );

            // Qi4j injects @Structure and @Service elements into this application instance
            //qi4jModule.newObject( WicketQi4jApplication.class );
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

                    {
                        createAssembler()
                    }
                }
            };
            Application application = qi4j.newApplication( new ApplicationAssemblerAdapter( assemblers )
            {
            } );
            application.activate();

            Module moduleInstance = application.findModule( "Layer 1", "config" );
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

    {
        try
        {
            logger.info( "Starting Qi4j application" );
            Energy4Java qi4j = new Energy4Java();
            qi4jApp = qi4j.newApplication( getAssembler() );
            qi4jApp.activate();
            qi4jModule = qi4jApp.findModule( defaultLayerName(), defaultModuleName() );

            // Qi4j injects @Structure and @Service elements into this application instance
            qi4jModule.injectTo( this );
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

            documentFactory.setSchema( schema );

            ApplicationAssembler assembler = createApplicationAssembler( config );

            Energy4Java qi4j = new Energy4Java();
            application = qi4j.newApplication( assembler );
            application.activate();
            Module module = application.findModule( "WebLayer", "PagesModule" );
            finder = module;

            if( application.mode() == Application.Mode.development )
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

                  {
                      new AssemblerB()
                  }
                }
            };
        Application app = boot.newApplication( new ApplicationAssemblerAdapter( assemblers )
        {
        } );
        app.activate();
        ObjectA object = app.findModule( "Layer 1", "Module A" ).newObject( ObjectA.class );
        object.test();
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

                {
                    infrastructure, testSetup
                }
            }
        };
        application = qi4j.newApplication( new ApplicationAssemblerAdapter( assemblers )
        {
        } );
        application.activate();

        Module moduleInstance = application.findModule( "Layer 1", "Module 1" );
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

        final ApplicationAssembler assembler = createAssembler();
        if( assembler != null )
        {
            try
            {
                return qi4j.newApplication( assembler );
            }
            catch( AssemblyException e )
            {
                throw new IllegalStateException( e );
            }
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

    {
        Energy4Java is = new Energy4Java(  );

        Server server = new Server( Protocol.HTTP, 8888 );

        Application app = is.newApplication( new ForumAssembler(), new MetadataService() );

        app.activate();

        ContextRestlet restlet = app.findModule( "REST", "Restlet" ).newObject( ContextRestlet.class, new org.restlet.Context() );
View Full Code Here

Examples of org.qi4j.bootstrap.Energy4Java.newApplication()

    public Main()
        throws Exception
    {
        Energy4Java qi4j = new Energy4Java();
        application = qi4j.newApplication( new MainAssembler() );
        application.activate();
    }

    public Application application()
    {
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.