Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

How to extend Tuscany Java SCA?

Code Block
package org.apache.tuscany.core;

h1. How to extend Tuscany Java SCA?

/**
 * The registry for the Tuscany core extension points.
 *
 * @version $Rev: 529327 $ $Date: 2007-04-16 10:10:43 -0700 (Mon, 16 Apr 2007) $
 */
public interface ExtensionPointRegistry {

    /**
     * Add an extension point to the registry
     * @param <T>
     * @param extensionPointType The interface of the extension point
     * @param extensionPoint The instance of the extension point
     */
    <T> void addExtensionPoint(Class<T> extensionPointType, T extensionPoint);

    /**
     * Get the extension point by the interface
     * @param <T>
     * @param extensionPointType
     * @return
     */
    <T> T getExtensionPoint(Class<T> extensionPointType);

    /**
     * Remove an extension point
     * @param extensionPoint
     */
    void removeExtensionPoint(Class extensionPoint);
}