|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.fc.Function
com.ibm.di.fc.ScriptedFC
public class ScriptedFC
This is a function component that relays FC operations to a user defined script.
Field Summary |
---|
Fields inherited from class com.ibm.di.fc.Function |
---|
logger |
Constructor Summary | |
---|---|
ScriptedFC()
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
This method enables the script to use action listeners. |
java.lang.Object |
callFunction(java.lang.String func,
java.lang.Object[] params)
Calls a script function with given parameters. |
java.lang.String |
getVersion()
Return version information |
void |
initialize(java.lang.Object obj)
Called once to initialize the function |
java.lang.Object |
perform(java.lang.Object obj)
If this method is called with an object of type java.lang.String, java.io.File, java.io.InputStream or java.io.Reader the configured parser is provided that object as input and the returned value is an Entry object resulting from the parsing. |
void |
terminate()
This method is/should be called once before the object is released. |
Methods inherited from class com.ibm.di.fc.Function |
---|
debug, getConfiguration, getContext, getDebug, getLog, getParam, getRSInterface, getUI, initialize, logmsg, querySchema, setConfiguration, setContext, setDebug, setLog, setParam, setRSInterface, updateSchema, verifyInitialized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptedFC()
Method Detail |
---|
public void initialize(java.lang.Object obj) throws java.lang.Exception
initialize
in interface FunctionInterface
initialize
in class Function
obj
- an initialization object passed directly to the script
function "initialize"
java.lang.Exception
- An exception is thrown if this method fails.public void terminate() throws java.lang.Exception
terminate
in interface FunctionInterface
terminate
in class Function
java.lang.Exception
public java.lang.Object callFunction(java.lang.String func, java.lang.Object[] params) throws java.lang.Exception
func
- Name of the functionparams
- Array of positional parameters
java.lang.Exception
- if any error occurs.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- ActionEvent
public java.lang.Object perform(java.lang.Object obj) throws java.lang.Exception
perform
in interface FunctionInterface
obj
- the input object for the function
java.lang.Exception
- An exception is thrown if this method fails.public java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |