FileDocCategorySizeDatePackage
AsynchRemoting.javaAPI DocJBoss 4.2.12010Fri Jul 13 21:02:26 BST 2007org.jboss.aspects.asynch

AsynchRemoting

public class AsynchRemoting extends Object
Comment
author
Bill Burke
version
$Revision: 57186 $

Fields Summary
Constructors Summary
Methods Summary
public static org.jboss.aop.proxy.ClassProxycreateRemoteProxy(java.lang.Object objectId, java.lang.Class clazz, org.jboss.remoting.InvokerLocator locator)

      AsynchMixin mixin = new AsynchMixin();
      AsynchProxyInterceptor interceptor = new AsynchProxyInterceptor(mixin);
      Class[] mixInterfaces = {AsynchProvider.class};
      ProxyMixin[] mixins = {new ProxyMixin(mixin, mixInterfaces)};
      ClassProxy proxy = ClassProxyFactory.newInstance(clazz, mixins);
      proxy._getInstanceAdvisor().insertInterceptor(interceptor);
      Remoting.makeRemotable(proxy, locator, objectId);
      return proxy;