public abstract class AbstractPlugins extends Object implements Plugins
WSRP_PLUGIN_EXTENSION_SUFFIX| Constructor and Description |
|---|
AbstractPlugins() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
createPluginInstance(String className,
Class<T> pluginClass)
Instantiates a plugin implementation using the default constructor of the plugin identified by the specified fully qualified class name, specifying that the implementation
must implement the specified plugin interface.
|
protected abstract <T> Class<? extends T> |
getImplementationNamed(String className,
Class<T> pluginClass)
Retrieves the Class object corresponding to the implementation named as specified by the provided name of the specified plugin interface.
|
protected abstract List<String> |
getImplementationNamesFor(String pluginClassName,
String defaultImplementationClassName)
Retrieves a list of fully qualified names of detected implementations of the WSRP extension interface specified by its provided fully qualified name, providing a default
implementation class name.
|
List<String> |
getKnownPluginInterfaceNames()
Retrieves the list of currently known extension points as plugins in our WSRP implementations.
|
List<String> |
getPluginImplementationNames(Class pluginClass,
String defaultImplementationClassName)
Retrieves a list of fully qualified names of detected implementations of the specified WSRP extension interface, providing a default implementation class name.
|
public List<String> getKnownPluginInterfaceNames()
PluginsgetKnownPluginInterfaceNames in interface Pluginspublic List<String> getPluginImplementationNames(Class pluginClass, String defaultImplementationClassName)
PluginsgetPluginImplementationNames in interface PluginspluginClass - the Class object representing the WSRP plugin interface we want to retrieve the implementations ofdefaultImplementationClassName - the fully qualified name of the default implementation for the specified pluginprotected abstract List<String> getImplementationNamesFor(String pluginClassName, String defaultImplementationClassName)
pluginClassName - the fully qualified name of the plugin interface of which we want to retrieve the available implementationsdefaultImplementationClassName - the fully qualified name of the default implementationpublic <T> T createPluginInstance(String className, Class<T> pluginClass)
PluginscreatePluginInstance in interface PluginsT - the type of the pluginclassName - the fully qualified name of the implementation class to instantiatepluginClass - the interface of the plugin of which we want to create an instanceprotected abstract <T> Class<? extends T> getImplementationNamed(String className, Class<T> pluginClass) throws ClassNotFoundException
T - the type of the pluginclassName - the fully qualified name of the implementation which Class we want to retrievepluginClass - the interface of the plugin which the specified implementation is supposed to conform toClassNotFoundException - if no such implementation existsCopyright © 2006-2014 GateIn. All Rights Reserved.