[jboss-cvs] JBossAS SVN: r59516 - trunk/aspects/src/main/org/jboss/aspects/remoting.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jan 11 02:36:18 EST 2007


Author: scott.stark at jboss.org
Date: 2007-01-11 02:36:16 -0500 (Thu, 11 Jan 2007)
New Revision: 59516

Modified:
   trunk/aspects/src/main/org/jboss/aspects/remoting/Remoting.java
Log:
Add a createRemoteProxy that supports interceptors, subsystem

Modified: trunk/aspects/src/main/org/jboss/aspects/remoting/Remoting.java
===================================================================
--- trunk/aspects/src/main/org/jboss/aspects/remoting/Remoting.java	2007-01-11 07:03:21 UTC (rev 59515)
+++ trunk/aspects/src/main/org/jboss/aspects/remoting/Remoting.java	2007-01-11 07:36:16 UTC (rev 59516)
@@ -63,12 +63,12 @@
    }
 
    /**
-    * 
+    * Create a remote proxy for the given ifaces, Dispatch.OID, locator.
     * @param objectId
     * @param loader
     * @param ifaces
     * @param locator
-    * @return
+    * @return the remote enabled proxy
     * @throws Exception
     */
    public static org.jboss.aop.proxy.Proxy createRemoteProxy(Object objectId, ClassLoader loader,
@@ -80,6 +80,29 @@
       Remoting.makeRemotable(proxy, locator, objectId);
       return proxy;
    }
+   /**
+    * Create a remote proxy for the given ifaces, Dispatch.OID, locator, interceptors
+    * and subsystem.
+    * 
+    * @param objectId
+    * @param loader
+    * @param ifaces
+    * @param locator
+    * @param interceptors
+    * @param subsystem
+    * @return the remote enabled proxy
+    * @throws Exception
+    */
+   public static org.jboss.aop.proxy.Proxy createRemoteProxy(Object objectId, ClassLoader loader,
+         Class[] ifaces, InvokerLocator locator,
+         List<Interceptor> interceptors, String subsystem)
+      throws Exception
+   {
+      GUID guid = new GUID();
+      org.jboss.aop.proxy.Proxy proxy = ProxyFactory.createInterfaceProxy(guid, loader, ifaces);
+      Remoting.makeRemotable(proxy, locator, objectId, interceptors, subsystem);
+      return proxy;
+   }
 
    /**
     * Does'nt propagate security/tx




More information about the jboss-cvs-commits mailing list