In the following example, the FciFunctionCall constructor
uses the registerFunctionCall method to register
the convertDate function with the Function Call
Manager:
public FciFunctionCall(IFX IFXMan) throws UWIException
{
FunctionCallManager theFCM;
if ((theFCM = IFSSingleton.getFunctionCallManager()) == null)
throw new UWIException("Needed Function Call Manager");
IFXMan.registerInterface(this,
FunctionCall.FUNCTIONCALL_INTERFACE_NAME,
FunctionCall.FUNCTIONCALL_CURRENT_VERSION,
FunctionCall.FUNCTIONCALL_MIN_VERSION_SUPPORTED,
0x01000300, 0, null, theFCM.getDefaultListener( ));
theFCM.registerFunctionCall(this, "sample_package",
"convertDate", FciFunctionCall.CONVERTDATE,
FunctionCall.FCI_FOLLOWS_STRICT_CALLING_PARAMETERS,
"S,S", 0x01000300, "Converts a date to a different
locale");
}