| java.lang.Object com.flexive.faces.beans.PluginRegistryBean
PluginRegistryBean | public class PluginRegistryBean implements Serializable(Code) | | An application-scoped beans that serves as a plugin registry.
author: Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) version: $Rev: 1 $ |
PluginRegistryBean | public PluginRegistryBean()(Code) | | Constructor. Search the classpath for plugin config files and initialize all plugins.
|
clearPlugins | public void clearPlugins(ExtensionPoint extensionPoint)(Code) | | Remove all plugins of the given extension point.
Parameters: extensionPoint - the extension point to be cleared. |
execute | public void execute(ExtensionPoint<PEX> extensionPoint, PEX executor)(Code) | | Execute all registered plugins for
extensionPoint using the given
executor object.
Parameters: extensionPoint - the extension point Parameters: executor - the executor to handle all registered plugins |
getInstance | public static PluginRegistryBean getInstance()(Code) | | Return the singleton (application-scoped) instance of this managed beans.
the singleton (application-scoped) instance of this managed beans. |
getPlugins | public List<Plugin<PEX>> getPlugins(ExtensionPoint<PEX> extensionPoint)(Code) | | Return all plugins registered for the given extension point.
Parameters: extensionPoint - the extension point all plugins registered for the given extension point. |
registerPlugin | public void registerPlugin(ExtensionPoint<PEX> extensionPoint, Plugin<PEX> callback)(Code) | | Register a plugin for the given extension point. The extension point must have
its executor type statically bound, i.e. it must not be generic (see
ExtensionPoint ). This
method is most likely called from a
com.flexive.faces.plugin.PluginFactory to register plugin callbacks.
Parameters: extensionPoint - the extension point Parameters: callback - the plugin handler to be added |
|
|