Examples of OwnerCreationalContext


Examples of com.caucho.config.inject.OwnerCreationalContext

    */
   
    try {
      RequestContext.begin();
      // XXX: needs reintegration
      OwnerCreationalContext env
        = new OwnerCreationalContext(_producer.getBean());
      Object instance = newInstance(env);
     
      Method method = _producer.getTimeoutMethod();
     
      if (method.getParameterTypes().length == 0)
View Full Code Here

Examples of com.caucho.config.inject.OwnerCreationalContext

  }
 
  @Override
  public <T> T getLocalProxy(Class<T> api)
  {
    OwnerCreationalContext owner = new OwnerCreationalContext(null);
   
    return getSessionContext(api).createProxy(owner);
  }
View Full Code Here

Examples of com.caucho.config.inject.OwnerCreationalContext

  private Object createServletImpl()
    throws Exception
  {
    if (_bean != null) {
      // XXX: need to ask manager?
      CreationalContextImpl<?> env = new OwnerCreationalContext(_bean);
     
      InjectManager cdiManager = InjectManager.create();
     
      // server/5130
      Object value = cdiManager.findReference(_bean);
     
      if (value != null)
        return value;
      else
        return _bean.create(env);
    }

    Class<?> servletClass = getServletClass();

    Object servlet;
    if (_jspFile != null) {
      servlet = createJspServlet(_servletName, _jspFile);

      if (servlet == null)
        throw new ServletException(L.l("'{0}' is a missing JSP file.",
                                       _jspFile));
    }

    else if (servletClass != null) {
      InjectManager inject = InjectManager.create();

      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

Examples of com.caucho.config.inject.OwnerCreationalContext

      try {
        InjectManager beanManager = InjectManager.create();
       
        InjectionTarget inject = beanManager.createInjectionTarget(page.getClass());

        CreationalContext<?> env = new OwnerCreationalContext(null);

        inject.inject(page, env);
       
        inject.postConstruct(page);
      } catch (InjectionException e) {
View Full Code Here

Examples of com.caucho.config.inject.OwnerCreationalContext

  final
  public void configure(Object bean)
    throws ConfigException
  {
    // ioc/23e7
    inject(bean, new OwnerCreationalContext(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.