Skip to content

Commit

Permalink
fixed: invocation of methods without parameters now possible
Browse files Browse the repository at this point in the history
via L2pNodeLauncher
  • Loading branch information
pedela committed May 4, 2014
1 parent 3dbe562 commit 02be3ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/i5/las2peer/tools/L2pNodeLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,12 @@ public void unregisterCurrentAgent () {
* @see #registerUserAgent
*
* @param serviceClass
* @param parameters
* @param parameters pass an empty string if you want to call a method without parameters
* @throws L2pServiceException any exception during service method invocation
*/
public Serializable invoke ( String serviceClass, String serviceMethod, String parameters) throws L2pServiceException {
public Serializable invoke (String serviceClass, String serviceMethod, String parameters) throws L2pServiceException {
if(parameters.equals(""))
return invoke(serviceClass, serviceMethod, new Serializable[0]);
String[] split = parameters.trim().split("-");
return invoke(serviceClass, serviceMethod, (Serializable[]) split);
}
Expand Down

0 comments on commit 02be3ee

Please sign in to comment.