Package com.caucho.config.gen

Examples of com.caucho.config.gen.CandiEnhancedBean


  }
 
  public void destroyProxy(T instance, CreationalContextImpl<T> env)
  {
    if (instance instanceof CandiEnhancedBean) {
      CandiEnhancedBean candiInstance = (CandiEnhancedBean) instance;
     
      candiInstance.__caucho_destroy(env);
    }
  }
View Full Code Here


  }
 
  public <T> T initProxy(T proxy, CreationalContextImpl<T> env)
  {
    if (proxy instanceof CandiEnhancedBean) {
      CandiEnhancedBean bean = (CandiEnhancedBean) proxy;
     
      try {
        if (_delegates == null)
          _delegates = createDelegates(env);

        _interceptors = bean.__caucho_inject(_delegates, _interceptors, env);
       
        /*
      } catch (Exception e) {
        log.log(Level.WARNING, e.toString(), e);
      }
     
      try {
      */
       
        bean.__caucho_postConstruct();
      } catch (RuntimeException e) {
        throw e;
      } catch (InvocationTargetException e) {
        throw new EJBExceptionWrapper(e.getCause());
      } catch (Exception e) {
View Full Code Here

   
    T proxy = _proxy;
    _proxy = null;
   
    if (proxy instanceof CandiEnhancedBean) {
      CandiEnhancedBean bean = (CandiEnhancedBean) proxy;

      bean.__caucho_destroy(null);
    }
  }
View Full Code Here

  }
 
  public <T> T initProxy(T instance, CreationalContextImpl<T> env)
  {
    if (instance instanceof CandiEnhancedBean) {
      CandiEnhancedBean bean = (CandiEnhancedBean) instance;
     
      Object []delegates = createDelegates(env);
      Object []interceptors = null;
     
      bean.__caucho_inject(delegates, interceptors, env);
     
      try {
        bean.__caucho_postConstruct();
      } catch (RuntimeException e) {
        throw e;
      } catch (InvocationTargetException e) {
        throw new EJBExceptionWrapper(e.getCause());
      } catch (Exception e) {
View Full Code Here

    CreationalContextImpl<X> env = (CreationalContextImpl<X>) cxt;
   
    Object parentValue = env.getParentValue();
   
    if (parentValue instanceof CandiEnhancedBean) {
      CandiEnhancedBean candiProxy = (CandiEnhancedBean) parentValue;
     
      if (candiProxy.__caucho_getDelegate() != null)
        return (X) candiProxy.__caucho_getDelegate();
    }
   
    return (X) parentValue;
  }
View Full Code Here

          env.setInjectionPoint(ip);
      }
     
      // server/4750
      if (value instanceof CandiEnhancedBean) {
        CandiEnhancedBean enhancedBean = (CandiEnhancedBean) value;
       
        Object []interceptors = null;
       
        enhancedBean.__caucho_inject(delegates, interceptors, env);
      }

      return value;
    } catch (RuntimeException e) {
      throw e;
View Full Code Here

    try {
      CreationalContext<X> env = null;

      // server/4750, ioc/0c29
      if (instance instanceof CandiEnhancedBean) {
        CandiEnhancedBean bean = (CandiEnhancedBean) instance;
        bean.__caucho_postConstruct();
      }
      else {
        for (ConfigProgram program : _initProgram) {
          // log.info("POST: " + program);
          if (program != null)
View Full Code Here

      CreationalContextImpl<X> env = null;


      // server/4750
      if (instance instanceof CandiEnhancedBean) {
        CandiEnhancedBean bean = (CandiEnhancedBean) instance;
        bean.__caucho_destroy(env);
      }
      else {
        // ioc/055a
        for (ConfigProgram program : _destroyProgram) {
          program.inject(instance, env);
View Full Code Here

TOP

Related Classes of com.caucho.config.gen.CandiEnhancedBean

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.