Package org.jboss.errai.ioc.client.container

Examples of org.jboss.errai.ioc.client.container.CreationalContext


    }
  }

  @Override
  public boolean addDestructionCallback(final Object beanInstance, final DestructionCallback<?> destructionCallback) {
    final CreationalContext creationalContext = creationalContextMap.get(beanInstance);
    if (creationalContext == null) {
      return false;
    }

    creationalContext.addDestructionCallback(beanInstance, destructionCallback);
    return true;
  }
View Full Code Here


      }

      final Bootstrapper bootstrapper = GWT.create(Bootstrapper.class);
      injectionContext = bootstrapper.bootstrapContainer();

      final CreationalContext rootContext = injectionContext.getRootContext();

      if (rootContext instanceof AsyncCreationalContext) {
        ((AsyncCreationalContext) rootContext).finish(new Runnable() {
          @Override
          public void run() {
View Full Code Here

  private final IOCBeanManager manager;
  private final CreationalContext rootContext;

  public BootstrapperInjectionContext() {
    manager = IOC.getBeanManager();
    rootContext = new CreationalContext(true, manager, ApplicationScoped.class.getName());
  }
View Full Code Here

  private IOCBeanManager manager;
  private CreationalContext rootContext;

  public BootstrapperInjectionContext() {
    manager = IOC.getBeanManager();
    rootContext = new CreationalContext(manager);
  }
View Full Code Here

  private IOCBeanManager manager;
  private CreationalContext rootContext;

  public BootstrapperInjectionContext() {
    manager = IOC.getBeanManager();
    rootContext = new CreationalContext(true, manager, "javax.enterprise.context.ApplicationScoped");
  }
View Full Code Here

    }
  }

  @Override
  public boolean addDestructionCallback(final Object beanInstance, final DestructionCallback<?> destructionCallback) {
    final CreationalContext creationalContext = creationalContextMap.get(beanInstance);
    if (creationalContext == null) {
      return false;
    }

    creationalContext.addDestructionCallback(beanInstance, destructionCallback);
    return true;
  }
View Full Code Here

      }

      final Bootstrapper bootstrapper = GWT.create(Bootstrapper.class);
      injectionContext = bootstrapper.bootstrapContainer();

      final CreationalContext rootContext = injectionContext.getRootContext();

      if (rootContext instanceof AsyncCreationalContext) {
        ((AsyncCreationalContext) rootContext).finish(new Runnable() {
          @Override
          public void run() {
View Full Code Here

          + type.getName() + " matches: " + matching);
    }
  }

  public boolean addDestructionCallback(final Object beanInstance, final DestructionCallback<?> destructionCallback) {
    final CreationalContext creationalContext = creationalContextMap.get(beanInstance);
    if (creationalContext == null) {
      return false;
    }

    creationalContext.addDestructionCallback(beanInstance, destructionCallback);
    return true;
  }
View Full Code Here

  private final IOCBeanManager manager;
  private final CreationalContext rootContext;

  public BootstrapperInjectionContext() {
    manager = IOC.getBeanManager();
    rootContext = new CreationalContext(true, manager, ApplicationScoped.class.getName());
  }
View Full Code Here

      final Bootstrapper bootstrapper = GWT.create(Bootstrapper.class);
      final RootPanel rootPanel = RootPanel.get();
      final InterfaceInjectionContext ctx = bootstrapper.bootstrapContainer();

      CreationalContext rootContext = ctx.getRootContext();
      rootContext.finish();

      for (Widget w : ctx.getToRootPanel()) {
        rootPanel.add(w);
      }
View Full Code Here

TOP

Related Classes of org.jboss.errai.ioc.client.container.CreationalContext

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.