Package com.caucho.config.inject

Examples of com.caucho.config.inject.BeanFactory.scope()


      factory.binding(Names.create(name));
    }

    // server/12dt
    // for backward compatibility <resource> is always ApplicationScoped
    factory.scope(ApplicationScoped.class);

    if (_object != null)
      beanManager.addBean(factory.singleton(_object));
    else
      beanManager.addBean(factory.bean());
View Full Code Here


 
  Class cl = Class.forName(_className, false, loader);

  BeanFactory factory = webBeans.createBeanFactory(cl);

  factory.scope(ApplicationScoped.class);

  if (_name != null)
    factory.name(_name);

  if (_init != null)
View Full Code Here

    }

    BeanFactory factory = beanManager.createBeanFactory(beanType);

    if (_scope != null)
      factory.scope(_scope);

    if (_init != null)
      factory.init(_init);

    Object value = replaceObject();
View Full Code Here

    for (Annotation stereotype : _stereotypeList) {
      factory.stereotype(stereotype.annotationType());
    }

    if (_scope != null) {
      factory.scope(_scope);
      // comp.setScope(_beanManager.getScopeContext(_scope));
    }

    /*
    if (_isService) {
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.