|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FunctionInterface
This is the interface implemented by Function objects.
| Method Summary | |
|---|---|
void |
debug(String aMsg)
If debug is turned on, logs the aMsg string value to the currently used log. |
BaseConfiguration |
getConfiguration()
Gets the configuration attribute of the FunctionInterface object |
Object |
getContext()
|
Log |
getLog()
Returns the logger object i use by this FC |
Object |
getParam(String param)
Gets the param attribute of the FunctionInterface object |
Component |
getUI()
This method returns the user interface component presented to the user to configure the operational configuration of the function. |
void |
initialize(Object obj)
Called once to initialize the function |
void |
logmsg(String msg)
Logs the msg string value to the currently used log |
Object |
perform(Object obj)
This is the main method of a Function Component. |
void |
setConfiguration(BaseConfiguration config)
Sets the configuration attribute of the FunctionInterface object |
void |
setContext(Object aContext)
|
void |
setLog(Log logger)
Sets the logger object to use in this FC |
void |
setParam(String param,
Object value)
Sets the param attribute of the FunctionInterface object |
void |
terminate()
The implementation of this method must take care to cleanup any resources which the Function Component has allocated during its operation. |
boolean |
updateSchema(FunctionConfig config)
This method modifies the schema in the provided configuration. |
| Method Detail |
|---|
void initialize(Object obj)
throws Exception
obj - this object provides information to the Function Component needed on initialization
Exception - An exception is thrown if the initialization fails.
Object perform(Object obj)
throws Exception
obj - the input to the function
Exception - An exception is thrown if this method fails.
void terminate()
throws Exception
Exception - An exception is thrown if this method fails.Component getUI()
BaseConfiguration getConfiguration()
void setConfiguration(BaseConfiguration config)
config - The new configuration value
boolean updateSchema(FunctionConfig config)
throws Exception
ExceptionObject getParam(String param)
param - the name of the parameter whose value this method returns
void setParam(String param,
Object value)
param - The new param valuevalue - The new param valuevoid logmsg(String msg)
msg - The message appearing in the logvoid setLog(Log logger)
logger - The log objectLog getLog()
void debug(String aMsg)
aMsg - The debug message appearing in the logObject getContext()
void setContext(Object aContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||