org.xmlBlaster.engine.persistence
Class PersistencePluginManager
java.lang.Object
org.xmlBlaster.util.plugin.PluginManagerBase
org.xmlBlaster.engine.persistence.PersistencePluginManager
- All Implemented Interfaces:
- I_PluginManager
public class PersistencePluginManager
- extends PluginManagerBase
Title: PluginManager
Description: Loads persistence plugin
Method Summary |
java.lang.String |
getDefaultPluginName(java.lang.String type,
java.lang.String version)
|
I_PersistenceDriver |
getPlugin(java.lang.String type,
java.lang.String version)
Return a specific persistence plugin from cache (on first request create it). |
protected java.lang.String |
getPluginPropertyName()
|
boolean |
isSupported(java.lang.String type,
java.lang.String version)
Check if the requested plugin is supported. |
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 |
defaultPluginName
private static final java.lang.String defaultPluginName
- See Also:
- Constant Field Values
pluginPropertyName
private static final java.lang.String pluginPropertyName
- See Also:
- Constant Field Values
PersistencePluginManager
public PersistencePluginManager(ServerScope glob)
throws XmlBlasterException
- Throws:
XmlBlasterException
getPlugin
public I_PersistenceDriver getPlugin(java.lang.String type,
java.lang.String version)
throws XmlBlasterException
- Return a specific persistence plugin from cache (on first request create it).
- Parameters:
String
- The type of the requested plugin.String
- The version of the requested plugin.
- Returns:
- I_Manager The persistence plugin
- Throws:
XmlBlasterException
- Thrown if to suitable security manager has been found.
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
isSupported
public boolean isSupported(java.lang.String type,
java.lang.String version)
- Check if the requested plugin is supported.
- Parameters:
String
- The type of the requested plugin.String
- The version of the requested plugin.
- Returns:
- boolean true, if supported. else -> false
getPluginPropertyName
protected java.lang.String getPluginPropertyName()
- Overrides:
getPluginPropertyName
in class PluginManagerBase
- Returns:
- The name of the property in xmlBlaster.property, e.g. "Persistence.Driver[][]"
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
Copyright © 1999-2014 The xmlBlaster.org contributers.