RemoteCommandBean¶
-
public class
RemoteCommandBean
extends AbstractSessionBean¶ RemoteCommandBean is the session bean class of RemoteCommand. It can execute a registered command with the given parameters.
Author: Hugo Y. K. Lam See also:
RemoteCommand
,RemoteCommandHandler
Methods¶
execute¶
-
public Object
execute
(String cmdName, Object[] parameters)¶ Executes a registered command with the given parameters.
Parameters: - cmdName – the command name.
- parameters – parameters for the target method invocation.
Throws: - InstanceException – if the instance of the target class cannot be created or the method could not be invoked.
- InvocationTargetException – if the invoked method has thrown an exception.
- NullPointerException – if the command is not registered.
Returns: the object returned by the invoked method.