|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.blogentis.plugins.AbstractExtensionPoint
A simple IExtensionPoint base class implementation. It uses a LinkedList as an underlying extension store. Only the extension modification methods are synchronized.
Field Summary | |
protected java.util.LinkedList |
extensions
|
protected IPlugin |
plugin
|
Constructor Summary | |
AbstractExtensionPoint(IPlugin plugin)
|
Method Summary | |
void |
addExtension(IExtension ext)
Add an extension to this extension point. |
java.util.Iterator |
getExtensions()
Get the list of extensions that have been registered with this extension point. |
IPlugin |
getPlugin()
Get the plugin that defines this extension point. |
void |
removeExtension(IExtension extension)
Remove an extension from this extension point. |
void |
removeExtensions(IPlugin fromPlugin)
Remove all extensions that belong to this plugin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.blogentis.plugins.IExtensionPoint |
getExtensionClass, getName |
Field Detail |
protected java.util.LinkedList extensions
protected IPlugin plugin
Constructor Detail |
public AbstractExtensionPoint(IPlugin plugin)
Method Detail |
public void addExtension(IExtension ext)
IExtensionPoint
addExtension
in interface IExtensionPoint
ext
- the extension to add.public void removeExtension(IExtension extension)
IExtensionPoint
removeExtension
in interface IExtensionPoint
extension
- the extension to remove.public void removeExtensions(IPlugin fromPlugin)
IExtensionPoint
removeExtensions
in interface IExtensionPoint
fromPlugin
- the plugin whose extensions should be removed.public java.util.Iterator getExtensions()
IExtensionPoint
getExtensions
in interface IExtensionPoint
public IPlugin getPlugin()
IExtensionPoint
getPlugin
in interface IExtensionPoint
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |