public class SingleMethodCallCommand extends Object implements RemoteCommand
| Constructor and Description |
|---|
SingleMethodCallCommand(Object component,
String methodName,
Class<?>... parameterTypes) |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
execute(Serializable[] args)
This method will execute the command on the local machine.
|
String |
getId()
Gives the id of the command
|
public SingleMethodCallCommand(Object component, String methodName, Class<?>... parameterTypes) throws SecurityException, NoSuchMethodException, ClassNotFoundException
component - the component on which we want to execute the methodmethodName - the name of the methodparameterTypes - the parameter arrayNoSuchMethodException - if a matching method is not found.SecurityException - If a security manager, s, is present and any of the
following conditions is met:
s.checkMemberAccess(this, Member.DECLARED) denies
access to the declared method
s.checkPackageAccess() denies access to the package
of this class
ClassNotFoundException - If the last parameter type is an array and we
cannot find the type of the arraypublic Serializable execute(Serializable[] args) throws Throwable
execute in interface RemoteCommandargs - The parameters needed to execute the commandThrowable - in the event of problems.public String getId()
getId in interface RemoteCommandCopyright © 2017 eXo Platform SAS. All Rights Reserved.