Examples of ClassProxy


Examples of org.jboss.aop.proxy.ClassProxy

        //assertEquals(4,baseNew.doSomething(5));
  }

  public void testSimpleAOPSerializationCollection() throws Exception
  {
    ClassProxy proxy = createArrayListProxy();
    proxy = createArrayListProxy();
       
        ArrayList base = (ArrayList)proxy;
        //base.add("Test");
       
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

       
        //assertEquals(1,baseNew.size());
  }

  private ClassProxy createPOJOProxy() throws Exception {
    ClassProxy proxy = ClassProxyFactory.newInstance(BaseClass.class);
        InstanceAdvisor advisor = proxy._getInstanceAdvisor();
        advisor.appendInterceptor(new LocalInterceptor(new BaseClass()));
    return proxy;
  }
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

        advisor.appendInterceptor(new LocalInterceptor(new BaseClass()));
    return proxy;
  }
 
  private ClassProxy createArrayListProxy() throws Exception {
    ClassProxy proxy = ClassProxyFactory.newInstance(ArrayList.class);
        InstanceAdvisor advisor = proxy._getInstanceAdvisor();
        advisor.appendInterceptor(new LocalInterceptorArrayList(new ArrayList()));
    return proxy;
  }
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

    * Registers this Container with Remoting / AOP Dispatcher
    */
   protected void registerWithAopDispatcher()
   {
      String registrationName = this.getObjectName().getCanonicalName();
      ClassProxy classProxy = new InvokableContextClassProxyHack(this);
     
      // So that Remoting layer can reference this container easily.
      Dispatcher.singleton.registerTarget(registrationName, classProxy);
     
      // Log
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

    */
   @Override
   protected void registerWithAopDispatcher()
   {
      String registrationName = this.getObjectName().getCanonicalName();
      ClassProxy classProxy = new InvokableContextClassProxyHack(this);
     
      // So that Remoting layer can reference this container easily.
      Dispatcher.singleton.registerTarget(registrationName, classProxy);
     
      // Log
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

/*  85 */       throw new NotFoundInDispatcherException(oid);
/*     */     }
/*     */
/*  88 */     if ((target instanceof ClassProxy))
/*     */     {
/*  90 */       ClassProxy proxy = (ClassProxy)target;
/*  91 */       return proxy._dynamicInvoke(invocation);
/*     */     }
/*  93 */     if ((target instanceof Proxy))
/*     */     {
/*  95 */       Proxy proxy = (Proxy)target;
/*  96 */       return proxy._dynamicInvoke(invocation);
/*     */     }
/*  98 */     if ((target instanceof Advised))
/*     */     {
/* 100 */       Advisor advisor = ((Advised)target)._getAdvisor();
/* 101 */       return advisor.dynamicInvoke(target, invocation);
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

/*  76 */     metaData.removeMetaData("VERSION_MANAGER", "VERSION_ID");
/*     */   }
/*     */
/*     */   public List makeVersionedList(List list, ArrayList newObjects) throws Exception
/*     */   {
/*  81 */     ClassProxy proxy = ClassProxyFactory.newInstance(list.getClass());
/*  82 */     GUID guid = tag(proxy);
/*  83 */     DistributedListState manager = new DistributedListState(guid, this.timeout, proxy, list, this, this.synchManager);
/*  84 */     StateManager.setStateManager(proxy, manager);
/*  85 */     CollectionStateChangeInterceptor interceptor = new CollectionStateChangeInterceptor(manager);
/*  86 */     proxy._getInstanceAdvisor().appendInterceptor(interceptor);
/*  87 */     newObjects.add(manager);
/*  88 */     return (List)proxy;
/*     */   }
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

/*     */   }
/*     */
/*     */   public Map makeVersionedMap(Map map, ArrayList newObjects)
/*     */     throws Exception
/*     */   {
/*  94 */     ClassProxy proxy = ClassProxyFactory.newInstance(map.getClass());
/*  95 */     GUID guid = tag(proxy);
/*  96 */     DistributedMapState manager = new DistributedMapState(guid, this.timeout, proxy, map, this, this.synchManager);
/*  97 */     StateManager.setStateManager(proxy, manager);
/*  98 */     CollectionStateChangeInterceptor interceptor = new CollectionStateChangeInterceptor(manager);
/*  99 */     proxy._getInstanceAdvisor().appendInterceptor(interceptor);
/* 100 */     newObjects.add(manager);
/* 101 */     return (Map)proxy;
/*     */   }
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

/*     */   }
/*     */
/*     */   public Set makeVersionedSet(Set set, ArrayList newObjects)
/*     */     throws Exception
/*     */   {
/* 107 */     ClassProxy proxy = ClassProxyFactory.newInstance(set.getClass());
/* 108 */     GUID guid = tag(proxy);
/* 109 */     DistributedSetState manager = new DistributedSetState(guid, this.timeout, proxy, set, this, this.synchManager);
/* 110 */     StateManager.setStateManager(proxy, manager);
/* 111 */     CollectionStateChangeInterceptor interceptor = new CollectionStateChangeInterceptor(manager);
/* 112 */     proxy._getInstanceAdvisor().appendInterceptor(interceptor);
/* 113 */     newObjects.add(manager);
/* 114 */     return (Set)proxy;
/*     */   }
View Full Code Here

Examples of org.jboss.aop.proxy.ClassProxy

/*     */   }
/*     */
/*     */   public ClassProxy addListVersioning(List list, DistributedListState manager)
/*     */     throws Exception
/*     */   {
/* 234 */     ClassProxy proxy = ClassProxyFactory.newInstance(list.getClass());
/* 235 */     GUID guid = manager.getGUID();
/* 236 */     SimpleMetaData metaData = proxy._getInstanceAdvisor().getMetaData();
/* 237 */     metaData.addMetaData("VERSION_MANAGER", "VERSION_ID", guid);
/* 238 */     StateManager.setStateManager(proxy, manager);
/* 239 */     CollectionStateChangeInterceptor interceptor = new CollectionStateChangeInterceptor(manager);
/* 240 */     proxy._getInstanceAdvisor().appendInterceptor(interceptor);
/* 241 */     return proxy;
/*     */   }
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.