|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.workflow.base.BaseStep
org.apache.commons.workflow.core.LoadStep
public class LoadStep
Load a class with the specified name from the specified class loader,
and push the corresponding java.lang.Class object onto the
evaluation stack.
Supported Attributes:
| Field Summary | |
|---|---|
protected String |
name
The class name to be loaded. |
protected boolean |
thread
Load from the thread context class loader? |
| Fields inherited from class org.apache.commons.workflow.base.BaseStep |
|---|
id, nextStep, owner, previousStep |
| Constructor Summary | |
|---|---|
LoadStep()
Construct a default instance of this Step. |
|
LoadStep(String id)
Construct an instance of this Step with the specified identifier. |
|
LoadStep(String id,
String name)
Construct a fully configured instance of this Step. |
|
LoadStep(String id,
String name,
boolean thread)
Construct a fully configured instance of this Step. |
|
| Method Summary | |
|---|---|
void |
execute(Context context)
Perform the executable actions related to this Step, in the context of the specified Context. |
String |
getName()
|
boolean |
getThread()
|
void |
setName(String name)
|
void |
setThread(boolean thread)
|
String |
toString()
Render a string representation of this Step. |
| Methods inherited from class org.apache.commons.workflow.base.BaseStep |
|---|
getId, getNextStep, getOwner, getPreviousStep, setId, setNextStep, setOwner, setPreviousStep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String name
protected boolean thread
| Constructor Detail |
|---|
public LoadStep()
public LoadStep(String id)
id - Step identifier
public LoadStep(String id,
String name)
id - Step identifiername - Class name
public LoadStep(String id,
String name,
boolean thread)
id - Step identifiername - Class namethread - Load from thread context class loader?| Method Detail |
|---|
public String getName()
public void setName(String name)
public boolean getThread()
public void setThread(boolean thread)
public void execute(Context context)
throws StepException
execute in interface Stepexecute in class BaseStepcontext - The Context that is tracking our execution state
StepException - if a processing error has occurredpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||