Package com.netscape.cmscore.extensions
Class CMSExtensionsMap
- java.lang.Object
-
- com.netscape.cmscore.extensions.CMSExtensionsMap
-
- All Implemented Interfaces:
ISubsystem
public class CMSExtensionsMap extends java.lang.Object implements ISubsystem
Loads extension classes from configuration file and return for a given extension name or OID.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExt(ICMSExtension ext)
ICMSExtension
getByName(java.lang.String name)
Get the extension class by name.ICMSExtension
getByOID(org.mozilla.jss.netscape.security.util.ObjectIdentifier oid)
Get the extension class by its OID.IConfigStore
getConfigStore()
Get configuration store.java.lang.String
getId()
Returns subsystem IDstatic CMSExtensionsMap
getInstance()
void
init(IConfigStore config)
Create extensions from configuration store.void
setId(java.lang.String Id)
sets subsystem IDvoid
shutdown()
shutdown - does nothing.void
startup()
startup - does nothing.
-
-
-
Method Detail
-
getInstance
public static final CMSExtensionsMap getInstance()
-
init
public void init(IConfigStore config) throws EBaseException
Create extensions from configuration store.- Specified by:
init
in interfaceISubsystem
- Parameters:
config
- the configuration store.- Throws:
EBaseException
- failed to initialize
-
addExt
public void addExt(ICMSExtension ext) throws EBaseException
- Throws:
EBaseException
-
startup
public void startup() throws EBaseException
startup - does nothing.- Specified by:
startup
in interfaceISubsystem
- Throws:
EBaseException
- failed to start up
-
shutdown
public void shutdown()
shutdown - does nothing.- Specified by:
shutdown
in interfaceISubsystem
-
getConfigStore
public IConfigStore getConfigStore()
Get configuration store.- Specified by:
getConfigStore
in interfaceISubsystem
- Returns:
- configuration store of this subsystem
-
getId
public java.lang.String getId()
Returns subsystem ID- Specified by:
getId
in interfaceISubsystem
- Returns:
- subsystem identifier
-
setId
public void setId(java.lang.String Id)
sets subsystem ID- Specified by:
setId
in interfaceISubsystem
- Parameters:
Id
- subsystem identifier
-
getByName
public ICMSExtension getByName(java.lang.String name)
Get the extension class by name.- Parameters:
name
- name of the extension- Returns:
- the extension class.
-
getByOID
public ICMSExtension getByOID(org.mozilla.jss.netscape.security.util.ObjectIdentifier oid)
Get the extension class by its OID.- Parameters:
oid
- - the OID of the extension.- Returns:
- the extension class.
-
-