xmlBlaster 1.5.1 API

org.xmlBlaster.util.recorder
Class RecorderPluginManager

java.lang.Object
  extended byorg.xmlBlaster.util.plugin.PluginManagerBase
      extended byorg.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


Field Summary
private  Global glob
           
private static java.util.logging.Logger log
           
private static java.lang.String ME
           
static java.lang.String pluginPropertyName
           
 
Fields inherited from class org.xmlBlaster.util.plugin.PluginManagerBase
NO_PLUGIN_TYPE
 
Constructor Summary
RecorderPluginManager(Global glob)
           
 
Method Summary
 java.lang.String getDefaultPluginName(java.lang.String type, java.lang.String version)
           
 I_InvocationRecorder getPlugin(java.lang.String type, java.lang.String version, java.lang.String fn, long maxEntries, I_XmlBlaster serverCallback, I_CallbackRaw clientCallback)
          Return a specific filter plugin from cache (on first request it is created).
protected  java.lang.String getPluginPropertyName()
           
protected  I_InvocationRecorder loadPlugin(PluginInfo pluginInfo)
          Loads a new created invocation recorder plugin.
 void postInstantiate(I_Plugin plugin, PluginInfo pluginInfo)
          Is called after a plugin in instantiated, allows the base class to do specific actions.
 
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
 

Field Detail

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
Constructor Detail

RecorderPluginManager

public RecorderPluginManager(Global glob)
Method Detail

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 null
version - 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.

xmlBlaster 1.5.1 API

Copyright © 1999-2007 The xmlBlaster.org contributers.