|
||||||||||
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)
|
Component |
getUI()
This method returns the user interface component presented to the user to configure the operational configuration of the function. |
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, getLog, getParam, initialize, logmsg, setConfiguration, setContext, setLog, setParam, 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
Function
terminate
in interface FunctionInterface
terminate
in class Function
Exception
- An exception is thrown if this method fails.public Object callFunction(String func, Object[] params) throws Exception
Exception
public Component getUI()
getUI
in interface FunctionInterface
getUI
in class Function
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
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 |