Author: doogie
Date: Sun Oct 21 11:18:11 2007 New Revision: 586924 URL: http://svn.apache.org/viewvc?rev=586924&view=rev Log: Remove 2-arg vararg variants; beanshell doesn't handle overridden methods correctly. Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java ofbiz/trunk/framework/service/src/org/ofbiz/service/LocalDispatcher.java Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java?rev=586924&r1=586923&r2=586924&view=diff ============================================================================== --- ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java (original) +++ ofbiz/trunk/framework/service/src/org/ofbiz/service/GenericDispatcher.java Sun Oct 21 11:18:11 2007 @@ -136,10 +136,6 @@ return dispatcher.runSync(this.name, service, context); } - public Map<String, Object> runSync(String serviceName, Object... context) throws ServiceValidationException, GenericServiceException { - return runSync(serviceName, ServiceUtil.makeContext(context)); - } - /** * @see org.ofbiz.service.LocalDispatcher#runSync(java.lang.String, java.util.Map, int, boolean) */ @@ -166,10 +162,6 @@ dispatcher.runSyncIgnore(this.name, service, context); } - public void runSyncIgnore(String serviceName, Object... context) throws GenericServiceException { - runSyncIgnore(serviceName, ServiceUtil.makeContext(context)); - } - /** * @see org.ofbiz.service.LocalDispatcher#runSyncIgnore(java.lang.String, java.util.Map) */ @@ -248,10 +240,6 @@ runAsync(serviceName, context, true); } - public void runAsync(String serviceName, Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException { - runAsync(serviceName, ServiceUtil.makeContext(context)); - } - /** * @see org.ofbiz.service.LocalDispatcher#runAsyncWait(java.lang.String, java.util.Map, boolean) */ @@ -271,9 +259,5 @@ public GenericResultWaiter runAsyncWait(String serviceName, Map<String, ? extends Object> context) throws ServiceAuthException, ServiceValidationException, GenericServiceException { return runAsyncWait(serviceName, context, true); } - - public GenericResultWaiter runAsyncWait(String serviceName, Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException { - return runAsyncWait(serviceName, ServiceUtil.makeContext(context)); - } } Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/LocalDispatcher.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/LocalDispatcher.java?rev=586924&r1=586923&r2=586924&view=diff ============================================================================== --- ofbiz/trunk/framework/service/src/org/ofbiz/service/LocalDispatcher.java (original) +++ ofbiz/trunk/framework/service/src/org/ofbiz/service/LocalDispatcher.java Sun Oct 21 11:18:11 2007 @@ -40,7 +40,6 @@ * @throws GenericServiceException */ public Map<String, Object> runSync(String serviceName, Map<String, ? extends Object> context) throws GenericServiceException; - public Map<String, Object> runSync(String serviceName, Object... context) throws GenericServiceException; /** * Run the service synchronously with a specified timeout and return the result. @@ -65,7 +64,6 @@ * @throws GenericServiceException */ public void runSyncIgnore(String serviceName, Map<String, ? extends Object> context) throws GenericServiceException; - public void runSyncIgnore(String serviceName, Object... context) throws GenericServiceException; /** * Run the service synchronously with a specified timeout and IGNORE the result. @@ -142,7 +140,6 @@ * @throws GenericServiceException */ public void runAsync(String serviceName, Map<String, ? extends Object> context) throws ServiceAuthException, ServiceValidationException, GenericServiceException; - public void runAsync(String serviceName, Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException; /** * Run the service asynchronously. @@ -167,7 +164,6 @@ * @throws GenericServiceException */ public GenericResultWaiter runAsyncWait(String serviceName, Map<String, ? extends Object> context) throws ServiceAuthException, ServiceValidationException, GenericServiceException; - public GenericResultWaiter runAsyncWait(String serviceName, Object... context) throws ServiceAuthException, ServiceValidationException, GenericServiceException; /** * Register a callback listener on a specific service. |
Free forum by Nabble | Edit this page |