Package com.caucho.config.inject

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


      Class<?> attrType = attrStrategy.getConfigType().getType();
     
      Set<Bean<?>> beans
        = cdiManager.getBeans(attrType, (Annotation) qualifier);
     
      Bean<?> bean = cdiManager.resolve(beans);
     
      CreationalContext cxt = null;
     
      childBean = cdiManager.getReference(bean, attrType, cxt);
    }
View Full Code Here


      beans = injectManager.getBeans(_type);
   
    Bean<?> bean;
   
    try {
      bean = injectManager.resolve(beans);
    } catch (Exception e) {
      throw new ConfigException(L.l("{0} can't resolve a unique bean.\n  {1}",
                                    this, e.toString(),
                                    e));
    }
View Full Code Here

    if (_value == null && getLookupName() == null) {
      InjectManager cdiManager = InjectManager.getCurrent();
     
      Set<Bean<?>> beans = cdiManager.getBeans(_type);
     
      _bean = cdiManager.resolve(beans);
    }

   
    try {
      Jndi.bindDeepShort(_name, this);
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.