|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.plugins.PluginManager
Base class for client and server side plugin managers.
| Constructor Summary | |
PluginManager()
|
|
| Method Summary | |
java.lang.Object |
getPlugin(java.lang.Class pluginInterface)
Finds the configured Plugin implementing the given interface. |
java.lang.Object |
getPlugin(java.lang.String interfaceName)
Returns a plugin implementation for a specified interface name. |
java.lang.Object |
getPlugin(java.lang.String interfaceName,
java.lang.ClassLoader cl)
Returns a plugin implementation for a specified interface name. |
boolean |
isPluginDeclared(java.lang.Class pluginInterface)
Checks if a plugin is configured for the given interface. |
abstract boolean |
isPluginDeclared(java.lang.String interfaceName)
Checks if a plugin is configured for the given interface. |
protected java.lang.Object |
newInstanceOf(java.lang.String className,
java.lang.ClassLoader loader)
Uses the default constructor to construct an instance of a given class's name in a provided ClassLoader and returns it. |
protected abstract java.lang.Object |
resolvePlugin(java.lang.String interfaceName,
java.lang.ClassLoader cl)
Resolves a plugin implementation for a specified interface name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PluginManager()
| Method Detail |
public java.lang.Object getPlugin(java.lang.Class pluginInterface)
pluginInterface - the interface of the plugin to find.
java.lang.RuntimeException - if no implementation is configured for the interface.public java.lang.Object getPlugin(java.lang.String interfaceName)
interfaceName - the fully qualified name of a java interface, specifying
the interface the implementation has to implement. Both, the
interface and the implementation must be loadable by the classloader
that loaded this class.
java.lang.RuntimeException - if no implementation is configured for the interface.
public java.lang.Object getPlugin(java.lang.String interfaceName,
java.lang.ClassLoader cl)
interfaceName - the fully qualified name of a java interface, specifying
the interface the implementation has to implement. Both, the
interface and the implementation must be loadable by the classloader
that loaded this class.cl - the ClassLoader where the implementation class can be loaded from.
java.lang.RuntimeException - if no implementation is configured for the interface.
protected abstract java.lang.Object resolvePlugin(java.lang.String interfaceName,
java.lang.ClassLoader cl)
interfaceName - the fully qualified name of a java interface, specifying
the interface the implementation has to implement. Both, the
interface and the implementation must be loadable by the classloader
that loaded this class.cl - the ClassLoader where the implementation class can be loaded from.
protected java.lang.Object newInstanceOf(java.lang.String className,
java.lang.ClassLoader loader)
at.spardat.enterprise.exc.SysException - with code Codes.PLUGIN_CANNOT_CONSTRUCT_OBJECT on faults.public boolean isPluginDeclared(java.lang.Class pluginInterface)
pluginInterface - the interface of the plugin to find.
public abstract boolean isPluginDeclared(java.lang.String interfaceName)
interfaceName - the fully qualified name of a java interface, specifying
the interface the plugin has to implement.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||