|
|||||||||||
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(ActionEvent event)
This method enables the script to use action listeners. |
Object |
callFunction(String func,
Object[] params)
Calls a script function with given parameters. |
String |
getVersion()
Return version information |
void |
initialize(Object obj)
Called once to initialize the function |
Object |
perform(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(Object obj) throws Exception
initialize
in interface FunctionInterface
initialize
in class Function
obj
- an initialization object passed directly to the script
function "initialize"
Exception
- An exception is thrown if this method fails.public void terminate() throws Exception
terminate
in interface FunctionInterface
terminate
in class Function
Exception
public Object callFunction(String func, Object[] params) throws Exception
func
- Name of the functionparams
- Array of positional parameters
Exception
- if any error occurs.public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- ActionEvent
public Object perform(Object obj) throws Exception
perform
in interface FunctionInterface
obj
- the input object for the function
Exception
- An exception is thrown if this method fails.public String getVersion()
getVersion
in interface VersionInfoInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |