org.tango.server.command
Class ReflectCommandBehavior

java.lang.Object
  extended by org.tango.server.command.ReflectCommandBehavior
All Implemented Interfaces:
ICommandBehavior

public final class ReflectCommandBehavior
extends java.lang.Object
implements ICommandBehavior


Constructor Summary
ReflectCommandBehavior(java.lang.reflect.Method executeMethod, java.lang.Object businessObject, CommandConfiguration config)
           
 
Method Summary
 java.lang.Object execute(java.lang.Object arg)
          Execute the command
 CommandConfiguration getConfiguration()
           
 StateMachineBehavior getStateMachine()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReflectCommandBehavior

public ReflectCommandBehavior(java.lang.reflect.Method executeMethod,
                              java.lang.Object businessObject,
                              CommandConfiguration config)
Method Detail

execute

public java.lang.Object execute(java.lang.Object arg)
                         throws fr.esrf.Tango.DevFailed
Description copied from interface: ICommandBehavior
Execute the command

Specified by:
execute in interface ICommandBehavior
Parameters:
arg - the input of the command
Returns:
The ouput of the command
Throws:
fr.esrf.Tango.DevFailed

getConfiguration

public CommandConfiguration getConfiguration()
Specified by:
getConfiguration in interface ICommandBehavior
Returns:
the command configuration

getStateMachine

public StateMachineBehavior getStateMachine()
Specified by:
getStateMachine in interface ICommandBehavior
Returns:
the command state machine

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012-2016. All Rights Reserved.