Package com.caucho.config.inject

Examples of com.caucho.config.inject.CreationalContextImpl


      if (_comp == null) {
        _comp = inject.createInjectionTarget(servletClass);
      }

      CreationalContextImpl env = new OwnerCreationalContext(null);

      try {
        // server/1b40
        if (_comp != null) {
          servlet = _comp.produce(env);
View Full Code Here


  public T getLocalObject(Class<?> api)
  {
    SingletonProxyFactory factory = getSessionContext().getProxyFactory(api);

    if (factory != null) {
      CreationalContextImpl env = new CreationalContextImpl();
      // XXX: should be bean
      return (T) factory.__caucho_createNew(null, env);
    } else
      return null;
  }
View Full Code Here

       
        if (value != null)
          return value;
      }
     
      cxt = new CreationalContextImpl(bean, cxt);
    }
    else {
      cxt = new CreationalContextImpl(bean, null);
    }
   
    Object result = webBeans.getReference(bean, bean.getBeanClass(), cxt);

    if (result != null) {
View Full Code Here

  public Object eval(CreationalContext<T> parentEnv)
  {
    if (_bean == null)
      bind();

    CreationalContext<T> beanEnv = new CreationalContextImpl(_bean, parentEnv);
   
    // XXX: getInstance for injection?
    return _beanManager.getReference(_bean, _type, beanEnv);
  }
View Full Code Here

TOP

Related Classes of com.caucho.config.inject.CreationalContextImpl

Copyright © 2018 www.massapicom. 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.