ExtensionPoint

public class ExtensionPoint extends PluginComponent

An ExtensionPoint is a plugin component which represents the extension-point element in the plugin descriptor.

Author:Hugo Y. K. Lam

See also: Plugin, Extension, ExtensionPointHandler

Constructors

ExtensionPoint

public ExtensionPoint(PluginComponent parent, String id, String name, String handlerClass)

Creates a new instance of ExtensionPoint.

Parameters:
  • parent – the parent plugin component.
  • id – the extension point ID.
  • handlerClass – the handler class of this extension point.

Methods

getHandlerClass

public String getHandlerClass()

Gets the handler class of this extension point.

Returns:the handler class of this extension point.

getId

public String getId()

Gets the ID of this extention point.

Returns:the ID of this extention point.

getName

public String getName()

Gets the name of this extension point.

Returns:the name of this extension point.

processExtensions

public void processExtensions(Collection extensions)

Processes extensions by invoking the handler class of this extension point.

Parameters:
  • extensions – the extensions to be processed.
Throws:
  • PluginException – if there is error in processing extensions by the handler

toString

public String toString()

Returns a string representation of this extension point.

Returns:a string representation of this extension point.

See also: java.lang.Object.toString()