Package com.ibm.di.fc

Class JavaClassFC

    • Constructor Detail

      • JavaClassFC

        public JavaClassFC()
    • Method Detail

      • initialize

        public void initialize​(java.lang.Object obj)
                        throws java.lang.Exception
        Called once to initialize the function
        Specified by:
        initialize in interface FunctionInterface
        Overrides:
        initialize in class Function
        Parameters:
        obj - Additional information
        Throws:
        java.lang.Exception - If the configuration is not complete, or the class or method cannot be found
      • setInstance

        public void setInstance​(java.lang.Object obj)
        Sets the instance that will be used when invoking the method. By default an instance created using the empty constructor will be used.
        Parameters:
        obj - The instance to use
      • getInstance

        public java.lang.Object getInstance()
        Return the instance that is used when invoking the method.
        Returns:
        The instance used
      • perform

        public java.lang.Object perform​(java.lang.Object obj)
                                 throws java.lang.Exception
        Makes a call to the java method.
        Parameters:
        obj - An Entry containing the values of the parameters
        Returns:
        The result of calling the method
        Throws:
        java.lang.Exception - If no method is found. If parameters are needed, and obj is not an Entry.
      • getVersion

        public java.lang.String getVersion()
        Description copied from interface: VersionInfoInterface
        Version information.
        Returns:
        version information
      • getMethods

        public java.lang.String[] getMethods()
        Return a list of method names in our javaClass. Used by the Config Editor.
        Returns:
        a String[] containing names of all methods.
      • updateSchema

        public boolean updateSchema​(FunctionConfig config)
                             throws java.lang.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:
        java.lang.Exception - : never