org.xmlBlaster.client.protocol
Class ProtocolPluginManager
java.lang.Object
org.xmlBlaster.util.plugin.PluginManagerBase
org.xmlBlaster.client.protocol.ProtocolPluginManager
- All Implemented Interfaces:
- I_PluginManager
public class ProtocolPluginManager
- extends PluginManagerBase
ProtocolPluginManager loads the protocol plugins like CORBA/RMI/XmlRpc on client side
to access xmlBlaster.
A typical xmlBlaster.properties entry:
ClientProtocolPlugin[IOR][1.0]=org.xmlBlaster.client.protocol.corba.CorbaConnection
- Author:
- Marcel Ruff.
- See Also:
- protocol
Methods inherited from class org.xmlBlaster.util.plugin.PluginManagerBase |
createPluginPropertyKey, getDummyPlugin, getFromPluginCache, getGlobal, getName, getPluginObject, getPluginObject, getPluginObject, ignorePlugin, instantiatePlugin, instantiatePlugin, removeFromPluginCache, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pluginPropertyName
public static final java.lang.String pluginPropertyName
- See Also:
- Constant Field Values
ProtocolPluginManager
public ProtocolPluginManager(Global glob)
getPluginPropertyName
protected java.lang.String getPluginPropertyName()
- Enforced by PluginManagerBase.
- Overrides:
getPluginPropertyName
in class PluginManagerBase
- Returns:
- The name of the property in xmlBlaster.property "LoadBalancerPlugin"
for "LoadBalancerPlugin[RoundRobin][1.0]"
getDefaultPluginName
public java.lang.String getDefaultPluginName(java.lang.String type,
java.lang.String version)
- Specified by:
getDefaultPluginName
in interface I_PluginManager
- Overrides:
getDefaultPluginName
in class PluginManagerBase
- Parameters:
type
- can be nullversion
- can be null
- Returns:
- please return your default plugin classname or null if not specified
getNewProtocolDriverInstance
public final I_XmlBlasterConnection getNewProtocolDriverInstance(java.lang.String driverType)
throws XmlBlasterException
- Creates a new instance of the given protocol driver type.
You need to call clientDriver.init(glob, address) on it.
- Parameters:
driverType
- e.g. "RMI"
- Returns:
- The uninitialized driver, never null
- Throws:
XmlBlasterException
- on problems
getPlugin
public I_XmlBlasterConnection getPlugin(java.lang.String type,
java.lang.String version)
throws XmlBlasterException
- Return a specific plugin, every call will create a new plugin instance.
- Parameters:
String
- The type of the requested plugin.String
- The version of the requested plugin.
- Returns:
- The plugin for this type and version or null if none is specified
- Throws:
XmlBlasterException
postInstantiate
public void postInstantiate(I_Plugin plugin,
PluginInfo pluginInfo)
- Description copied from class:
PluginManagerBase
- Is called after a plugin in instantiated, allows the base class to do specific actions.
Is NOT called when plugin got from cache.
- Overrides:
postInstantiate
in class PluginManagerBase
activateDrivers
public void activateDrivers()
throws XmlBlasterException
- Throws:
XmlBlasterException
deactivateDrivers
public final void deactivateDrivers(boolean force)
shutdownDrivers
public void shutdownDrivers(boolean force)
throws XmlBlasterException
- Throws:
XmlBlasterException
Copyright © 1999-2014 The xmlBlaster.org contributers.