at.spardat.xma.plugins
Class PluginManagerServer

java.lang.Object
  extended byat.spardat.xma.plugins.PluginManager
      extended byat.spardat.xma.plugins.PluginManagerServer

public class PluginManagerServer
extends PluginManager

Realizes the PluginManager at the server side of XMA.


Method Summary
static PluginManagerServer getInstance()
          Returns the single PluginManager instance at the server side of XMA.
 boolean isPluginDeclared(java.lang.String interfaceName)
          Checks if a plugin is configured for the given interface and a server side implementation is defined.
protected  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 at.spardat.xma.plugins.PluginManager
getPlugin, getPlugin, getPlugin, isPluginDeclared, newInstanceOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static PluginManagerServer getInstance()
Returns the single PluginManager instance at the server side of XMA.


resolvePlugin

protected java.lang.Object resolvePlugin(java.lang.String interfaceName,
                                         java.lang.ClassLoader cl)
Description copied from class: PluginManager
Resolves a plugin implementation for a specified interface name. This method is called just once per interface name. It is required that this operation should terminate as fast as possible, optimally just constructing the implementation object.

Specified by:
resolvePlugin in class PluginManager
Parameters:
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.
Returns:
an object implementing the provided interface.
See Also:
PluginManager.resolvePlugin(java.lang.String, java.lang.ClassLoader)

isPluginDeclared

public boolean isPluginDeclared(java.lang.String interfaceName)
Checks if a plugin is configured for the given interface and a server side implementation is defined.

Specified by:
isPluginDeclared in class PluginManager
Parameters:
interfaceName - the fully qualified name of a java interface, specifying the interface the plugin has to implement.
Returns:
true if a plugin is declared for the given interface in xma-app.xml, false otherwise.