at.spardat.xma.plugins
Class PluginManagerClient

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

public class PluginManagerClient
extends PluginManager

Realizes the plugin concept at the client side of XMA.


Constructor Summary
PluginManagerClient(XMASessionClient session)
           
 
Method Summary
 boolean isPluginDeclared(java.lang.String interfaceName)
          Checks if a plugin is configured for the given interface and a client 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
 

Constructor Detail

PluginManagerClient

public PluginManagerClient(XMASessionClient session)
Method Detail

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 client 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.