Examples of TypeInjector


Examples of org.jboss.errai.ioc.rebind.ioc.TypeInjector

    }, Rule.after(EntryPoint.class, ApplicationScoped.class, Singleton.class));

    procFactory.registerHandler(ApplicationScoped.class, new AnnotationHandler<ApplicationScoped>() {
      public boolean handle(InjectableInstance instance, ApplicationScoped annotation, IOCProcessingContext context) {
        InjectionContext injectionContext = injectorFactory.getInjectionContext();
        TypeInjector i = (TypeInjector) instance.getInjector();

        if (!i.isInjected()) {
          // instantiate the bean.
          i.setSingleton(true);
          i.getType(injectionContext, null);
          injectionContext.registerInjector(i);
        }
        return true;
      }
    });
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

              if (injectors.size() == 1) {
                injector = injectors.get(0);
              }
              else {
                injector = new TypeInjector(instance.getType(), injectionContext);
              }

              if (injector.isEnabled() && injector instanceof TypeInjector) {
                injector.getBeanInstance(instance);
              }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

        if (injectors.size() == 1) {
          injector = injectors.get(0);
        }
        else {
          injector = new TypeInjector(type, injectionContext);
        }

        return entry.handler
            .handle(getInjectedInstance(annotation, type, injector, injectionContext), annotation, context);
      }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

  }

  public void addType(final MetaClass type) {
    if (injectors.containsKey(type))
      return;
    registerInjector(new TypeInjector(type, this));
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

      return;
    registerInjector(new TypeInjector(type, this));
  }

  public void addPsuedoScopeForType(final MetaClass type) {
    final TypeInjector inj = new TypeInjector(type, this);
    inj.setReplaceable(true);
    registerInjector(inj);
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

    return unmodifiableCollection(privateMethodsToExpose);
  }

  public void addType(MetaClass type) {
    if (injectors.containsKey(type)) return;
    registerInjector(new TypeInjector(type, this));
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

    if (injectors.containsKey(type)) return;
    registerInjector(new TypeInjector(type, this));
  }

  public void addPsuedoScopeForType(MetaClass type) {
    TypeInjector inj = new TypeInjector(type, this);
    inj.setReplaceable(true);
    registerInjector(inj);
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

    return unmodifiableCollection(privateMethodsToExpose);
  }

  public void addType(MetaClass type) {
    if (injectors.containsKey(type)) return;
    registerInjector(new TypeInjector(type, this));
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

    if (injectors.containsKey(type)) return;
    registerInjector(new TypeInjector(type, this));
  }

  public void addPsuedoScopeForType(MetaClass type) {
    TypeInjector inj = new TypeInjector(type, this);
    inj.setReplaceable(true);
    registerInjector(inj);
  }
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector

              if (injectors.size() == 1) {
                injector = injectors.get(0);
              }
              else {
                injector = new TypeInjector(instance.getType(), injectionContext);
              }

              if (injector.isEnabled() && injector instanceof TypeInjector) {
                injector.getBeanInstance(instance);
              }
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.