[jboss-cvs] JBossAS SVN: r66970 - trunk/server/src/main/org/jboss/invocation/unified/interfaces.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 12 14:05:56 EST 2007


Author: galder.zamarreno at jboss.com
Date: 2007-11-12 14:05:56 -0500 (Mon, 12 Nov 2007)
New Revision: 66970

Modified:
   trunk/server/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerProxy.java
Log:
[JBAS-4950] Convenience factory method added in invoker proxy for testing purpouses.

Modified: trunk/server/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerProxy.java
===================================================================
--- trunk/server/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerProxy.java	2007-11-12 19:03:54 UTC (rev 66969)
+++ trunk/server/src/main/org/jboss/invocation/unified/interfaces/UnifiedInvokerProxy.java	2007-11-12 19:05:56 UTC (rev 66970)
@@ -40,6 +40,7 @@
  * the remoting framework for making invocations.
  *
  * @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
+ * @author <a href="mailto:galder.zamarreno at jboss.com">Galder Zamarreno</a>
  */
 public class UnifiedInvokerProxy implements Invoker, Externalizable
 {
@@ -81,7 +82,7 @@
 
       try
       {
-         client = new Client(locator, getSubSystem());
+         client = createClient(locator, getSubSystem());
          client.connect();
       }
       catch(Exception e)
@@ -229,4 +230,8 @@
       }
    }
 
+   protected Client createClient(InvokerLocator locator, String subSystem) throws Exception
+   {
+      return new Client(locator, subSystem);
+   }
 }




More information about the jboss-cvs-commits mailing list