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.StringID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExt(ICMSExtension ext)ICMSExtensiongetByName(java.lang.String name)Get the extension class by name.ICMSExtensiongetByOID(org.mozilla.jss.netscape.security.util.ObjectIdentifier oid)Get the extension class by its OID.IConfigStoregetConfigStore()Get configuration store.java.lang.StringgetId()Returns subsystem IDstatic CMSExtensionsMapgetInstance()voidinit(IConfigStore config)Create extensions from configuration store.voidsetId(java.lang.String Id)sets subsystem IDvoidshutdown()shutdown - does nothing.voidstartup()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:
initin 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 EBaseExceptionstartup - does nothing.- Specified by:
startupin interfaceISubsystem- Throws:
EBaseException- failed to start up
-
shutdown
public void shutdown()
shutdown - does nothing.- Specified by:
shutdownin interfaceISubsystem
-
getConfigStore
public IConfigStore getConfigStore()
Get configuration store.- Specified by:
getConfigStorein interfaceISubsystem- Returns:
- configuration store of this subsystem
-
getId
public java.lang.String getId()
Returns subsystem ID- Specified by:
getIdin interfaceISubsystem- Returns:
- subsystem identifier
-
setId
public void setId(java.lang.String Id)
sets subsystem ID- Specified by:
setIdin 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.
-
-