org.xmlBlaster.util.recorder
Class RecorderPluginManager
java.lang.Object
org.xmlBlaster.util.plugin.PluginManagerBase
org.xmlBlaster.util.recorder.RecorderPluginManager
- All Implemented Interfaces:
- I_PluginManager
- public class RecorderPluginManager
- extends PluginManagerBase
Please register your plugins in xmlBlaster.properties.
Example
RecorderPlugin[FileRecorder][1.0]=org.xmlBlaster.util.recorder.file.FileRecorder
See util.recorder and
client.failsafe requirement
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 |
ME
private static final java.lang.String ME
- See Also:
- Constant Field Values
pluginPropertyName
public static final java.lang.String pluginPropertyName
- See Also:
- Constant Field Values
glob
private final Global glob
log
private static java.util.logging.Logger log
RecorderPluginManager
public RecorderPluginManager(Global glob)
getPlugin
public I_InvocationRecorder getPlugin(java.lang.String type,
java.lang.String version,
java.lang.String fn,
long maxEntries,
I_XmlBlaster serverCallback,
I_CallbackRaw clientCallback)
throws XmlBlasterException
- Return a specific filter plugin from cache (on first request it is created).
- Parameters:
fn
- The file name for persistence or null (will be generated or ignored if RAM based)
- Returns:
- The RecorderFilter 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
getPluginPropertyName
protected java.lang.String getPluginPropertyName()
- Overrides:
getPluginPropertyName
in class PluginManagerBase
- Returns:
- The name of the property in xmlBlaster.property "MimeRecorderPlugin"
for "MimeRecorderPlugin[demo][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
loadPlugin
protected I_InvocationRecorder loadPlugin(PluginInfo pluginInfo)
throws XmlBlasterException
- Loads a new created invocation recorder plugin.
- Parameters:
pluginInfo
- The struct containing the plugin specific data
- Returns:
- I_InvocationRecorder
- Throws:
XmlBlasterException
- Thrown if loading or initializing failed.
Copyright © 1999-2007 The xmlBlaster.org contributers.