Extension

public class Extension extends PluginComponent

An Extension is a plugin component which represents the extension element in the plugin descriptor.

Author:Hugo Y. K. Lam

See also: Plugin, ExtensionPoint

Constructors

Extension

public Extension(PluginComponent parent, String point, String name)

Creates a new instance of Extension.

Parameters:
  • parent – the parent plugin component.
  • point – the extension point this extension extends.
  • name – the extension name.

Extension

public Extension(PluginComponent parent, String point, String name, Properties parameters)

Creates a new instance of Extension.

Parameters:
  • parent – the parent plugin component.
  • point – the extension point this extension extends.
  • name – the extension name.
  • parameters – the extension parameters.

Methods

getName

public String getName()

Gets the extension name.

Returns:the extension name.

getParameter

public String getParameter(String key)

Gets an extension parameter.

Parameters:
  • key – the key of the parameter.
Returns:

the parameter.

getParameters

public Properties getParameters()

Gets the extension parameters.

Returns:the parameters.

getPoint

public String getPoint()

Gets the extension point this extension extends.

Returns:the extension point.

toString

public String toString()

Returns a string representation of this extension.

Returns:a string representation of this extension.

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