Package com.caucho.config.inject

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


      beans = beanManager.getBeans(_type, Names.create(text));
    else
      beans = beanManager.getBeans(_type);

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

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

      value = beanManager.getReference(bean, _type, env);
View Full Code Here


   
    InjectManager injectManager = InjectManager.getCurrent();
   
    Set<Bean<?>> beans = injectManager.getBeans(_type);
   
    Bean<?> bean = injectManager.resolve(beans);
   
    if (bean == null)
      throw new ConfigException(L.l("ejb-ref '{0}' is an unknown bean",
                                    _type));
   
View Full Code Here

    Set<Bean<?>> beans = webBeans.getBeans(name);

    if (beans.size() == 0)
      return null;

    Bean<?> bean = webBeans.resolve(beans);
   
    XmlConfigContext env = XmlConfigContext.getCurrent();
   
    CreationalContext<?> cxt = null;
   
View Full Code Here

    if (name != null)
      beans = webBeans.getBeans(type, Names.create(name));

    if (beans != null && beans.size() != 0)
      return webBeans.resolve(beans);

    beans = webBeans.getBeans(type, new AnnotationLiteral<Any>() {});

    if (beans == null || beans.size() == 0)
      return null;
View Full Code Here

      beans = injectManager.getBeans(type, Names.create(name));
    else
      beans = injectManager.getBeans(type, CurrentLiteral.CURRENT);

    if (beans != null && beans.size() != 0)
      return injectManager.resolve(beans);

    beans = injectManager.getBeans(type, new AnnotationLiteral<Any>() {});

    if (beans == null || beans.size() == 0)
      return null;
View Full Code Here

      beans = beanManager.getBeans(_type, Names.create(text));
    else
      beans = beanManager.getBeans(_type);

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

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

      value = beanManager.getReference(bean, _type, env);
View Full Code Here

      beans = beanManager.getBeans(_type, Names.create(text));
    else
      beans = beanManager.getBeans(_type);

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

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

      value = beanManager.getReference(bean, _type, env);
View Full Code Here

    if (name != null)
      beans = webBeans.getBeans(type, Names.create(name));

    if (beans != null && beans.size() != 0)
      return webBeans.resolve(beans);

    beans = webBeans.getBeans(type, new AnnotationLiteral<Any>() {});

    if (beans == null || beans.size() == 0)
      return null;
View Full Code Here

        beans = injectManager.getBeans(type, Names.create(name));
      else
        beans = injectManager.getBeans(type, DefaultLiteral.DEFAULT);

      if (beans != null && beans.size() != 0)
        return injectManager.resolve(beans);

      beans = injectManager.getBeans(type, new AnnotationLiteral<Any>() {});

      if (beans == null || beans.size() == 0)
        return null;
View Full Code Here

      Set<Bean<?>> beans = null;

      beans = injectManager.getBeans(type, qualifiers);

      if (beans != null) {
        Bean<?> bean = injectManager.resolve(beans);

        if (bean != null)
          return bean;
      }
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.