|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.fc.Function
public abstract class Function
This abstract class contains a default implementation of all methods in the FunctionInterface except the the perform(obj) method. Every Function Component implementation class should inherit from this class.
Field Summary | |
---|---|
protected Log |
logger
|
Constructor Summary | |
---|---|
Function()
|
Method Summary | |
---|---|
void |
debug(String aMsg)
Writes a message to the log if debug/detailed logging is turned on |
BaseConfiguration |
getConfiguration()
This method returns the function's current configuration |
Object |
getContext()
|
Log |
getLog()
Returns the logger object i use by this FC |
Object |
getParam(String param)
Gets the param attribute of the FunctionInterface object |
Component |
getUI()
This method returns the user interface component presented to the user to configure the operational configuration of the function. |
void |
initialize()
Calls inititialize(null) |
void |
initialize(Object object)
This method is/should be called once after the object has been given its configuration |
void |
logmsg(String msg)
Logs the msg string value to the currently used log |
void |
setConfiguration(BaseConfiguration configuration)
This method is/should be called once after the object has been given its configuration |
void |
setContext(Object aContext)
|
void |
setLog(Log logger)
Sets the logger object to use in this FC |
void |
setParam(String param,
Object value)
Sets the param attribute of the FunctionInterface object |
void |
terminate()
This method is/should be called once before the object is released |
boolean |
updateSchema(FunctionConfig config)
This method modifies the schema. |
void |
verifyInitialized()
Verifies that initialize() has been called at least once after the FC has been loaded or the terminate() method has been called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.di.fc.FunctionInterface |
---|
perform |
Methods inherited from interface com.ibm.di.server.VersionInfoInterface |
---|
getVersion |
Field Detail |
---|
protected Log logger
Constructor Detail |
---|
public Function()
Method Detail |
---|
public void initialize(Object object) throws Exception
initialize
in interface FunctionInterface
object
- this object provides information to the Function Component needed on initialization
Exception
- An exception is thrown if the initialization fails.public void terminate() throws Exception
terminate
in interface FunctionInterface
Exception
- An exception is thrown if this method fails.public void setConfiguration(BaseConfiguration configuration)
setConfiguration
in interface FunctionInterface
configuration
- The new configuration valuepublic BaseConfiguration getConfiguration()
getConfiguration
in interface FunctionInterface
public Component getUI()
getUI
in interface FunctionInterface
public boolean updateSchema(FunctionConfig config) throws Exception
updateSchema
in interface FunctionInterface
Exception
public Object getParam(String param)
getParam
in interface FunctionInterface
param
- The name of the parameter
public void setParam(String param, Object value)
setParam
in interface FunctionInterface
param
- The new param valuevalue
- The new param valuepublic void logmsg(String msg)
logmsg
in interface FunctionInterface
msg
- The message appearing in the logpublic void setLog(Log logger)
setLog
in interface FunctionInterface
logger
- The log objectpublic Log getLog()
getLog
in interface FunctionInterface
public void initialize() throws Exception
Exception
public void debug(String aMsg)
debug
in interface FunctionInterface
aMsg
- The messagepublic void verifyInitialized() throws Exception
Exception
- thrown if initialize() hasn't been calledpublic Object getContext()
getContext
in interface FunctionInterface
public void setContext(Object aContext)
setContext
in interface FunctionInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |