|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.pipeline.stage.BaseStage org.apache.commons.pipeline.stage.InvokeMethodStage
public class InvokeMethodStage
Calls a method on the processed object giving it the arguments specified at the time of object construction.
Field Summary |
---|
Fields inherited from class org.apache.commons.pipeline.stage.BaseStage |
---|
context |
Constructor Summary | |
---|---|
InvokeMethodStage(Method method)
Creates a new instance of InvokeMethodStage |
|
InvokeMethodStage(Method method,
Object... arguments)
Creates a new instance of InvokeMethodStage |
|
InvokeMethodStage(String className,
String methodName,
Object... arguments)
Creates a new instance of InvokeMethodStage from the class and method names. |
Method Summary | |
---|---|
Object[] |
getArguments()
Returns the objects being used to invoke this method |
Method |
getMethod()
Returns the method to be accessed by processing |
void |
process(Object obj)
Calls the specified method on the object being processed and exqueues the result |
Methods inherited from class org.apache.commons.pipeline.stage.BaseStage |
---|
emit, emit, init, postprocess, preprocess, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InvokeMethodStage(Method method)
public InvokeMethodStage(Method method, Object... arguments)
public InvokeMethodStage(String className, String methodName, Object... arguments) throws ClassNotFoundException, NoSuchMethodException
ClassNotFoundException
NoSuchMethodException
Method Detail |
---|
public Method getMethod()
public Object[] getArguments()
public void process(Object obj) throws StageException
process
in interface Stage
process
in class BaseStage
obj
- The object being processed.
StageException
- an Exception thrown by an overriding implementation should
be wrapped in a StageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |