com.ibm.di.fc
Class JavaClassFC
java.lang.Object
com.ibm.di.fc.Function
com.ibm.di.fc.JavaClassFC
- All Implemented Interfaces:
- FunctionInterface, VersionInfoInterface
public class JavaClassFC
- extends Function
| Methods inherited from class com.ibm.di.fc.Function |
debug, getConfiguration, getContext, getLog, getParam, getUI, initialize, logmsg, setConfiguration, setContext, setLog, setParam, terminate, verifyInitialized |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaClassFC
public JavaClassFC()
initialize
public void initialize(Object obj)
throws Exception
- Called once to initialize the function
- Specified by:
initialize in interface FunctionInterface- Overrides:
initialize in class Function
- Parameters:
obj - Additional information
- Throws:
Exception - If the configuration is not complete, or the class or method cannot be found
setInstance
public void setInstance(Object obj)
getInstance
public Object getInstance()
perform
public Object perform(Object obj)
throws Exception
- Description copied from interface:
FunctionInterface
- This is the main method of a Function Component. This method is called for the Function Component
to actually do its job. The implementation of this methods performs the function which the Function Component
was created to do.
- Parameters:
obj - An Entry containing the values of the parameters
- Returns:
- The result of calling the method
- Throws:
Exception - If no method is found. If parameters are needed,
and obj is not an Entry.
getVersion
public String getVersion()
- Return version information
- Returns:
- The version value
getMethods
public Vector getMethods()
updateSchema
public boolean updateSchema(FunctionConfig config)
throws Exception
- This method modifies the schema in the provided configuration. The intent is to allow the FC to
provide a schema definition dynamically based on a given configuration.
Note: changes the configuration of this component
- Specified by:
updateSchema in interface FunctionInterface- Overrides:
updateSchema in class Function
- Parameters:
config - - The new FunctionConfig to use
- Returns:
- - true if the schema was successfully updated
- Throws:
Exception