|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.plugin.PluginManagerBase org.xmlBlaster.authentication.plugins.PluginManager
public class PluginManager
Title: PluginManager Description: Loads security plugin
Field Summary | |
---|---|
private Authenticate |
auth
|
private static java.lang.String |
defaultPluginName
|
private java.lang.String |
defaultPluginType
|
private java.lang.String |
defaultPluginVersion
|
private ServerScope |
glob
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
Fields inherited from class org.xmlBlaster.util.plugin.PluginManagerBase |
---|
NO_PLUGIN_TYPE |
Constructor Summary | |
---|---|
PluginManager(ServerScope glob)
|
Method Summary | |
---|---|
java.lang.String |
getDefaultPluginName(java.lang.String type,
java.lang.String version)
|
I_Manager |
getDummyManager()
Tries to return an instance of the default security manager, which simulates the old xmlBlaster behavior. |
I_Manager |
getManager(SessionInfo sessionInfo)
Returns the security manager, responsible for given session. |
I_Manager |
getManager(java.lang.String sessionId)
Returns the security manager, responsible for given session. |
I_Manager |
getManager(java.lang.String type,
java.lang.String version)
Return a specific SecurityManager, suitable to handle the requested security mechanisms. |
protected java.lang.String |
getPluginPropertyName()
|
void |
init(Authenticate auth)
Initialize the PluginManager |
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 |
---|
private final java.lang.String ME
private static final java.lang.String defaultPluginName
private java.lang.String defaultPluginType
private java.lang.String defaultPluginVersion
private Authenticate auth
private final ServerScope glob
private static java.util.logging.Logger log
Constructor Detail |
---|
public PluginManager(ServerScope glob)
Method Detail |
---|
public void init(Authenticate auth)
public I_Manager getManager(java.lang.String type, java.lang.String version) throws XmlBlasterException
Only one instance is created, further requests return the cached instance
String
- The type of the requested plugin.String
- The version of the requested plugin.
XmlBlasterException
- Thrown if to suitable security manager has been found.public I_Manager getManager(java.lang.String sessionId) throws XmlBlasterException
String
- sessionIdI_Manager
-
Thrown,
- if the session is unknown.
XmlBlasterException
public void postInstantiate(I_Plugin plugin, PluginInfo pluginInfo)
PluginManagerBase
postInstantiate
in class PluginManagerBase
protected java.lang.String getPluginPropertyName()
getPluginPropertyName
in class PluginManagerBase
public java.lang.String getDefaultPluginName(java.lang.String type, java.lang.String version)
getDefaultPluginName
in interface I_PluginManager
getDefaultPluginName
in class PluginManagerBase
type
- can be nullversion
- can be null
public I_Manager getManager(SessionInfo sessionInfo) throws XmlBlasterException
String
- sessionIdI_Manager
-
Thrown,
- if the session is unknown.
XmlBlasterException
public I_Manager getDummyManager() throws XmlBlasterException
XmlBlasterException
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |