An extension point where plugins can be registered. An extension point specifies
a specific subinterface of
PluginExecutor . Plugins registered with this extension
point then use the PluginExecutor's methods to modify the application's behaviour.
This class must be subclassed to bind its type parameters but is usually used anonymously
(similar to a ThreadLocal variable), e.g.
public static final ExtensionPoint<MyPluginExecutorInterface> EXTENSION =
new ExtensionPoint<MyPluginExecutorInterface>("myExtensionName") { };
Note: it should be possible to use ExtensionPoint directly through a generic
instantiation (i.e.
new ExtensionPoint<MyExecutor>() ), however this requires a
more powerful type resolver than the plugin registry's simple implementation. JDK7
will have this.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 1 $ |