Package org.jboss.proxy.compiler

Examples of org.jboss.proxy.compiler.InvocationHandler


      // If we have an EJB 2.0 dynaymic proxy,
      // notify the handler of the assigned context.
      Object instance = ctx.getInstance();
      if(instance instanceof Proxies.ProxyTarget)
      {
         InvocationHandler handler = ((Proxies.ProxyTarget)instance).getInvocationHandler();
         if(handler instanceof EntityBridgeInvocationHandler)
            ((EntityBridgeInvocationHandler)handler).setContext(ctx);
      }
      ctx.setPersistenceContext(new JDBCContext(jdbcContextSize, new EntityState()));
   }
View Full Code Here


      // If we have an EJB 2.0 dynaymic proxy,
      // notify the handler of the assigned context.
      Object instance = ctx.getInstance();
      if(instance instanceof Proxies.ProxyTarget)
      {
         InvocationHandler handler = ((Proxies.ProxyTarget)instance).getInvocationHandler();
         if(handler instanceof EntityBridgeInvocationHandler)
            ((EntityBridgeInvocationHandler)handler).setContext(null);
      }
      ctx.setPersistenceContext(null);
   }
View Full Code Here

      // If we have an EJB 2.0 dynaymic proxy,
      // notify the handler of the assigned context.
      Object instance = ctx.getInstance();
      if(instance instanceof Proxies.ProxyTarget)
      {
         InvocationHandler handler = ((Proxies.ProxyTarget) instance).getInvocationHandler();
         if(handler instanceof EntityBridgeInvocationHandler)
         {
            ((EntityBridgeInvocationHandler) handler).setContext(null);
         }
      }
View Full Code Here

      // If we have an EJB 2.0 dynaymic proxy,
      // notify the handler of the assigned context.
      Object instance = ctx.getInstance();
      if(instance instanceof Proxies.ProxyTarget)
      {
         InvocationHandler handler = ((Proxies.ProxyTarget) instance).getInvocationHandler();
         if(handler instanceof EntityBridgeInvocationHandler)
         {
            ((EntityBridgeInvocationHandler) handler).setContext(ctx);
         }
      }
View Full Code Here

/*     */   public static void destroyPersistenceContext(EntityEnterpriseContext ctx)
/*     */   {
/* 205 */     Object instance = ctx.getInstance();
/* 206 */     if ((instance instanceof Proxies.ProxyTarget))
/*     */     {
/* 208 */       InvocationHandler handler = ((Proxies.ProxyTarget)instance).getInvocationHandler();
/* 209 */       if ((handler instanceof EntityBridgeInvocationHandler))
/*     */       {
/* 211 */         ((EntityBridgeInvocationHandler)handler).setContext(null);
/*     */       }
/*     */     }
View Full Code Here

/*     */   public void initPersistenceContext(EntityEnterpriseContext ctx)
/*     */   {
/* 221 */     Object instance = ctx.getInstance();
/* 222 */     if ((instance instanceof Proxies.ProxyTarget))
/*     */     {
/* 224 */       InvocationHandler handler = ((Proxies.ProxyTarget)instance).getInvocationHandler();
/* 225 */       if ((handler instanceof EntityBridgeInvocationHandler))
/*     */       {
/* 227 */         ((EntityBridgeInvocationHandler)handler).setContext(ctx);
/*     */       }
/*     */     }
View Full Code Here

/*      */   public void initPersistenceContext(EntityEnterpriseContext ctx)
/*      */   {
/*  746 */     Object instance = ctx.getInstance();
/*  747 */     if ((instance instanceof Proxies.ProxyTarget))
/*      */     {
/*  749 */       InvocationHandler handler = ((Proxies.ProxyTarget)instance).getInvocationHandler();
/*  750 */       if ((handler instanceof EntityBridgeInvocationHandler))
/*  751 */         ((EntityBridgeInvocationHandler)handler).setContext(ctx);
/*      */     }
/*  753 */     ctx.setPersistenceContext(new JDBCContext(this.jdbcContextSize, new EntityState()));
/*      */   }
View Full Code Here

/*      */   public static void destroyPersistenceContext(EntityEnterpriseContext ctx)
/*      */   {
/*  774 */     Object instance = ctx.getInstance();
/*  775 */     if ((instance instanceof Proxies.ProxyTarget))
/*      */     {
/*  777 */       InvocationHandler handler = ((Proxies.ProxyTarget)instance).getInvocationHandler();
/*  778 */       if ((handler instanceof EntityBridgeInvocationHandler))
/*  779 */         ((EntityBridgeInvocationHandler)handler).setContext(null);
/*      */     }
/*  781 */     ctx.setPersistenceContext(null);
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.proxy.compiler.InvocationHandler

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.