org.apache.examples.panorama.startup.impl
Class ExecuteStatic

java.lang.Object
  extended by org.apache.examples.panorama.startup.impl.ExecuteStatic
All Implemented Interfaces:
Executable

public class ExecuteStatic
extends java.lang.Object
implements Executable

Used to access the legacy startup code that is in the form of a public static method (usually init()) on some class.

Author:
Howard Lewis Ship

Constructor Summary
ExecuteStatic()
           
 
Method Summary
 void execute()
           
 void setMethodName(java.lang.String string)
          Sets the name of the method to invoke; if not set, the default is init.
 void setTargetClass(java.lang.Class targetClass)
          Sets the class to invoke the method on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteStatic

public ExecuteStatic()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Specified by:
execute in interface Executable
Throws:
java.lang.Exception

setMethodName

public void setMethodName(java.lang.String string)
Sets the name of the method to invoke; if not set, the default is init. The target class must have a public static method with that name taking no parameters.


setTargetClass

public void setTargetClass(java.lang.Class targetClass)
Sets the class to invoke the method on.