|
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.client.PluginLoader
public class PluginLoader
PluginLoader
is responsible for loading
and initialization of client secuirty plugins.
Either the client application chooses an appropriate plugin, or the
xmlBlaster.propertiesfile states, which plugin has to be used, by using the
Security.Client.DefaultPlugin
-Option.
Syntax:
Security.Client.DefaultPlugin=
PluginType,PluginVersion
Hint:
Type and version must be the type and version of a valid and declared plugin.
Example:
Security.Client.DefaultPlugin=gui,1.0
Security.Client.Plugin[gui][1.0]=org.xmlBlaster.authentication.ClientSecurityHelper
If neither the application, nor the config enforce a specific plugin, the Dummy-Plugin
is used (old xmlBlaster behavior).
Field Summary | |
---|---|
private Global |
glob
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private I_ClientPlugin |
plugin
|
private java.lang.String |
pluginMechanism
|
private java.lang.String |
pluginVersion
|
Constructor Summary | |
---|---|
PluginLoader(Global glob)
|
Method Summary | |
---|---|
private java.lang.String[] |
fetchClassnameAndParam(java.lang.String mechanism,
java.lang.String version)
Resolve a class name of a plugin, specified by its type (mechanism) and version. |
I_ClientPlugin |
getClientPlugin(java.lang.String mechanism,
java.lang.String version)
Load another plugin. |
I_ClientPlugin |
getCurrentClientPlugin()
Get the currently used plugin |
java.lang.String |
getType()
Get the type of the currently used plugin |
java.lang.String |
getVersion()
Get the Version of the currently used plugin |
private I_ClientPlugin |
loadPlugin(java.lang.String[] param)
Handels the process of loading a plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String ME
private final Global glob
private static java.util.logging.Logger log
private java.lang.String pluginMechanism
private java.lang.String pluginVersion
private I_ClientPlugin plugin
Constructor Detail |
---|
public PluginLoader(Global glob)
Method Detail |
---|
public java.lang.String getType()
public java.lang.String getVersion()
public I_ClientPlugin getCurrentClientPlugin() throws XmlBlasterException
XmlBlasterException
public I_ClientPlugin getClientPlugin(java.lang.String mechanism, java.lang.String version) throws XmlBlasterException
String
- The type of the plugin, e.g. "ldap"String
- The version of the plugin, e.g. "1.0"
XmlBlasterException
- Thrown if the plugin wasn't loadable or initializableprivate I_ClientPlugin loadPlugin(java.lang.String[] param) throws XmlBlasterException
String[]
- The first element of this array contains the class name. Following
elements are arguments for the plugin. (Like in c/c++ the command-line arguments.)
XmlBlasterException
- Thrown if loading or initializing failed.private java.lang.String[] fetchClassnameAndParam(java.lang.String mechanism, java.lang.String version) throws XmlBlasterException
String
- The typeString
- The version
XmlBlasterException
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |