Package juzu.impl.inject.spi.cdi

Examples of juzu.impl.inject.spi.cdi.Container


    return this;
  }

  @Override
  public InjectionContext<?, ?> create(Handler<Class<?>, Boolean> filter) throws Exception {
    final Container container = new WeldContainer(classLoader, scopeController, scopes);
    for (ReadFileSystem<?> fs : fileSystems) {
      container.addFileSystem(fs);
    }
    CDIContext cdiContext = new CDIContext(this, filter) {
      @Override
      public ClassLoader getClassLoader() {
        return container.getClassLoader();
      }
      @Override
      public BeanManager getBeanManager() {
        return container.getManager();
      }
      @Override
      public void close() {
        container.stop();
      }
      @Override
      public InjectorProvider getProvider() {
        return InjectorProvider.WELD;
      }
    };

    // Do the real boot
    CDIContext.boot.set(cdiContext);
    try {
      container.start();
    }
    finally {
      CDIContext.boot.set(cdiContext);
    }
View Full Code Here

TOP

Related Classes of juzu.impl.inject.spi.cdi.Container

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.