org.xmlBlaster.util.dispatch.plugins
Class DispatchPluginManager
java.lang.Object
org.xmlBlaster.util.plugin.PluginManagerBase
org.xmlBlaster.util.dispatch.plugins.DispatchPluginManager
- All Implemented Interfaces:
- I_PluginManager
public class DispatchPluginManager
- extends PluginManagerBase
DispatchPluginManager loads the I_MsgDispatchInterceptor implementation plugins.
Usage examples:
// xmlBlaster.properties or on command line
DispatchPlugin[Priority][1.0]=org.xmlBlaster.util.dispatch.plugins.prio.PriorizedDispatchPlugin
DispatchPlugin[FeedMotion][1.0]=org.xmlBlaster.util.dispatch.plugins.motion.FeedMotionDispatchPlugin
DispatchPlugin/defaultPlugin=Priority,1.0
# Switch off:
# DispatchPlugin/defaultPlugin=undef
I_MsgDispatchInterceptor interceptor = glob.getDispatchPluginManager().getPlugin("Priority", "1.0", "XY", queuePropertyBase);
- Author:
- Marcel Ruff.
- See Also:
- dispatch.plugin
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 |
defaultPluginName
private static final java.lang.String defaultPluginName
- See Also:
- Constant Field Values
pluginPropertyName
public static final java.lang.String pluginPropertyName
- See Also:
- Constant Field Values
DispatchPluginManager
public DispatchPluginManager(Global glob)
getPlugin
public I_MsgDispatchInterceptor getPlugin(java.lang.String typeVersion)
throws XmlBlasterException
- Return a specific dispatcher plugin, if possible from the cache.
This PluginManager exists once in the scope of a Global instance (check util.Global)
therefore the plugin of same typeVersion is only loaded once.
- Parameters:
typeVersion
- The type and version e.g. "Priority,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 "DispatchPlugin"
for "DispatchPlugin[Priority][1.0]"
postInstantiate
protected void postInstantiate(I_Plugin plugin,
PluginInfo pluginInfo)
throws XmlBlasterException
- Called after getPlugin() but only if plugin was new created
- Overrides:
postInstantiate
in class PluginManagerBase
- Throws:
XmlBlasterException
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 class name or null if not specified
Copyright © 1999-2014 The xmlBlaster.org contributers.