Package com.caucho.config.inject

Examples of com.caucho.config.inject.InjectManager.createCreationalContext()


  _bean = webBeans.createManagedBean(_beanClass);
      }

      InjectionTarget<T> injection = _bean.getInjectionTarget();
      CreationalContext<T> env = webBeans.createCreationalContext(_bean);

      T bean = injection.produce(env);
      injection.inject(bean, env);

      if (_setParent != null
View Full Code Here


    if (_bean == null)
      init();
   
    InjectManager beanManager = InjectManager.create();

    CreationalContext<?> env = beanManager.createCreationalContext(_bean);
    Class<?> type = _bean.getBeanClass();

    return InjectManager.create().getReference(_bean, type, env);
  }
View Full Code Here

      beans = beanManager.getBeans(_type);

    if (beans.iterator().hasNext()) {
      Bean bean = beanManager.resolve(beans);

      CreationalContext<?> env = beanManager.createCreationalContext(bean);

      value = beanManager.getReference(bean, _type, env);

      return value;
    }
View Full Code Here

      beans = beanManager.getBeans(_type);

    if (beans.iterator().hasNext()) {
      Bean bean = beanManager.resolve(beans);

      CreationalContext<?> env = beanManager.createCreationalContext(bean);

      value = beanManager.getReference(bean, _type, env);

      return value;
    }
View Full Code Here

   
    if (bean == null)
      throw new ConfigException(L.l("ejb-ref '{0}' is an unknown bean",
                                    _type));
   
    CreationalContext<?> cxt = injectManager.createCreationalContext(bean);
   
    return injectManager.getReference(bean, _type, cxt);
   
    /*
     if (_target == null) {
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.