xmlBlaster 2.2.0 API

org.xmlBlaster.engine.distributor.plugins
Class MsgDistributorPluginManager

java.lang.Object
  extended by org.xmlBlaster.util.plugin.PluginManagerBase
      extended by org.xmlBlaster.engine.distributor.plugins.MsgDistributorPluginManager
All Implemented Interfaces:
I_PluginManager

public class MsgDistributorPluginManager
extends PluginManagerBase

MsgDistributorPluginManager

Author:
Michele Laghi

Field Summary
private static java.lang.String defaultPluginName
          the default class name to use if nothing specified
static java.lang.String pluginPropertyName
          This is the prefix of the name used in xmlBlaster.properties to register the plugins of this type
 
Fields inherited from class org.xmlBlaster.util.plugin.PluginManagerBase
glob, NO_PLUGIN_TYPE
 
Constructor Summary
MsgDistributorPluginManager(Global glob)
           
 
Method Summary
 java.lang.String getDefaultPluginName(java.lang.String type, java.lang.String version)
           
 I_MsgDistributor getPlugin(java.lang.String typeVersion, TopicHandler topicHandler)
          Return a specific msgDistributor plugin.
 java.lang.String getPluginPropertyName()
          Enforced by PluginManagerBase.
 
Methods inherited from class org.xmlBlaster.util.plugin.PluginManagerBase
createPluginPropertyKey, getDummyPlugin, getFromPluginCache, getGlobal, getName, getPluginObject, getPluginObject, getPluginObject, ignorePlugin, instantiatePlugin, instantiatePlugin, postInstantiate, removeFromPluginCache, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultPluginName

private static final java.lang.String defaultPluginName
the default class name to use if nothing specified

See Also:
Constant Field Values

pluginPropertyName

public static final java.lang.String pluginPropertyName
This is the prefix of the name used in xmlBlaster.properties to register the plugins of this type

See Also:
Constant Field Values
Constructor Detail

MsgDistributorPluginManager

public MsgDistributorPluginManager(Global glob)
Method Detail

getPlugin

public I_MsgDistributor getPlugin(java.lang.String typeVersion,
                                  TopicHandler topicHandler)
                           throws XmlBlasterException
Return a specific msgDistributor plugin.

This PluginManager exists once in the scope of a Global instance (check util.Global)

Parameters:
typeVersion - The type and version e.g. "ConsumableQueue,1.0"
Returns:
null if no plugin was loaded
Throws:
XmlBlasterException

getPluginPropertyName

public java.lang.String getPluginPropertyName()
Enforced by PluginManagerBase.

Overrides:
getPluginPropertyName in class PluginManagerBase
Returns:
The name of the property in xmlBlaster.property "MsgDistributorPlugin" for "MsgDistributorPlugin[ConsumableQueue][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 null
version - can be null
Returns:
please return your default plugin class name or null if not specified

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.