Developing an extension point implementation class

You develop an extension point class to provide custom code for a particular method.

For example, the scripting sandbox extension point demonstrates the implementation of an extension point. You use the scripting sandbox to run custom code. The following sample code is an interface with no implementation for the method scriptingSandbox(ScriptingSandboxFunctionArguments inArgs). This extension point is implemented by writing a class that implements the ScriptingSandboxFunction interface and provides custom code for the scriptingSandbox(ScriptingSandboxFunctionArguments inArgs) method.

package com.ibm.pim.extensionpoints;

/**
 * Interface that represents the Scripting Sandbox function
 * 
 * @mdmpim.scriptequiv scripts launched via the Scripting Sandbox
 * @since 6.0.0
 */
public interface ScriptingSandboxFunction
{
    public static final String copyright = com.ibm.pim.utils.Copyright.copyright;

    /**
     * Java function that can be invoked via the sandbox.
     * 
     * @param inArgs
     *            the arguments for this invocation.
     */
    public void scriptingSandbox(ScriptingSandboxFunctionArguments inArgs);
}

After the implementation class is written, you need to compile it to produce a .class file. You can compile the .class file by using an IDE (such as Rational® Software Architect) or through the Java™ command-line compiler. The implementation class needs to be compiled without any errors within an IDE environment to create the .class file. The .class file is uploaded to the IBM® Product Master system as outlined in the following sections.