commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcar...@apache.org
Subject svn commit: r320787 - /jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/provider/SessionBeanProvider.java
Date Thu, 13 Oct 2005 15:59:04 GMT
Author: jcarman
Date: Thu Oct 13 08:59:00 2005
New Revision: 320787

URL: http://svn.apache.org/viewcvs?rev=320787&view=rev
Log:
Now using global Object[0] and Class[0] references from ProxyUtils.

Modified:
    jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/provider/SessionBeanProvider.java

Modified: jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/provider/SessionBeanProvider.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/provider/SessionBeanProvider.java?rev=320787&r1=320786&r2=320787&view=diff
==============================================================================
--- jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/provider/SessionBeanProvider.java
(original)
+++ jakarta/commons/sandbox/proxy/trunk/src/java/org/apache/commons/proxy/provider/SessionBeanProvider.java
Thu Oct 13 08:59:00 2005
@@ -17,6 +17,7 @@
 package org.apache.commons.proxy.provider;
 
 import org.apache.commons.proxy.ObjectProvider;
+import org.apache.commons.proxy.ProxyUtils;
 import org.apache.commons.proxy.exception.ObjectProviderException;
 
 import javax.naming.InitialContext;
@@ -74,8 +75,8 @@
             final InitialContext initialContext = properties == null ? new InitialContext()
:
                                                   new InitialContext( properties );
             Object homeObject = PortableRemoteObject.narrow( initialContext.lookup( jndiName
), homeInterface );
-            final Method createMethod = homeObject.getClass().getMethod( "create", new Class[]
{} );
-            return createMethod.invoke( homeObject, new Object[] {} );
+            final Method createMethod = homeObject.getClass().getMethod( "create", ProxyUtils.EMPTY_ARGUMENT_TYPES
);
+            return createMethod.invoke( homeObject, ProxyUtils.EMPTY_ARGUMENTS );
         }
         catch( NoSuchMethodException e )
         {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message