Package juzu.impl.plugin.application

Examples of juzu.impl.plugin.application.Application


        // We start the application
        // it should:
        // - instantiate the plugins
        // - bind the beans from the plugins in the container
        // we rely on the lazy nature of the beans for not really starting...
        Application application = injector.getApplication();
        application.start();

        // At this point the application is not really started
        // we must go through the other CDI phases for effectively registering
        // the beans in the container
        this.context = (CDIContext)application.getInjectionContext();
      }
      catch (Exception e) {
        throw new UnsupportedOperationException(e);
      }
    }
View Full Code Here


    injector.addFileSystem(classes);
    injector.setClassLoader(moduleLifeCycle.getClassLoader());

    //
    log.info("Starting " + descriptor.getName());
    Application application = new Application(injector, descriptor, resourceResolver);
    application.start();
    InjectionContext<?, ?> injectionContext = application.getInjectionContext();

    //
    AssetService assetPlugin = injectionContext.get(AssetService.class).get();

    //
View Full Code Here

      ResourceResolver resolver) {

    // Register for later lookup
    REGISTRY.put(Thread.currentThread().getContextClassLoader(), this);

    Application application = new Application(this, descriptor, resolver);

    //
    this.classLoader = classLoader;
    this.beanManager = beanManager;
    this.resolver = resolver;
View Full Code Here

TOP

Related Classes of juzu.impl.plugin.application.Application

Copyright © 2018 www.massapicom. 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.