|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.examples.panorama.startup.impl.ExecuteStatic
public class ExecuteStatic
Used to access the legacy startup code that is in the form
of a public static method (usually init()
) on some
class.
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 |
---|
public ExecuteStatic()
Method Detail |
---|
public void execute() throws java.lang.Exception
execute
in interface Executable
java.lang.Exception
public void setMethodName(java.lang.String string)
init
.
The target class must have a public static method with that name taking no
parameters.
public void setTargetClass(java.lang.Class targetClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |