|
|||||||||||
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.JavaClassFC
public class JavaClassFC
This is a function component that calls a generic java method.
Field Summary |
---|
Fields inherited from class com.ibm.di.fc.Function |
---|
logger |
Constructor Summary | |
---|---|
JavaClassFC()
|
Method Summary | |
---|---|
Object |
getInstance()
Return the instance that is used when invoking the method. |
String[] |
getMethods()
Return a list of method names in our javaClass. |
String |
getVersion()
Version information. |
void |
initialize(Object obj)
Called once to initialize the function |
Object |
perform(Object obj)
Makes a call to the java method. |
void |
setInstance(Object obj)
Sets the instance that will be used when invoking the method. |
boolean |
updateSchema(FunctionConfig config)
This method modifies the schema in the provided configuration. |
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, terminate, verifyInitialized |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaClassFC()
Method Detail |
---|
public void initialize(Object obj) throws Exception
initialize
in interface FunctionInterface
initialize
in class Function
obj
- Additional information
Exception
- If the configuration is not complete, or the class or
method cannot be foundpublic void setInstance(Object obj)
obj
- The instance to usepublic Object getInstance()
public Object perform(Object obj) throws Exception
obj
- An Entry containing the values of the parameters
Exception
- If no method is found. If parameters are needed, and obj is
not an Entry.public String getVersion()
VersionInfoInterface
public String[] getMethods()
public boolean updateSchema(FunctionConfig config) throws Exception
updateSchema
in interface FunctionInterface
updateSchema
in class Function
config
- -
The new FunctionConfig to use
Exception
- :
never
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |