Package com.netscape.cmscore.extensions
Class CMSExtensionsMap
- java.lang.Object
-
- com.netscape.cmscore.extensions.CMSExtensionsMap
-
public class CMSExtensionsMap extends java.lang.Object
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(CMSExtension ext)
CMSExtension
getByName(java.lang.String name)
Get the extension class by name.CMSExtension
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.- Parameters:
config
- the configuration store.- Throws:
EBaseException
-
addExt
public void addExt(CMSExtension ext) throws EBaseException
- Throws:
EBaseException
-
startup
public void startup() throws EBaseException
startup - does nothing.- Throws:
EBaseException
-
shutdown
public void shutdown()
shutdown - does nothing.
-
getConfigStore
public IConfigStore getConfigStore()
Get configuration store.
-
getId
public java.lang.String getId()
Returns subsystem ID
-
setId
public void setId(java.lang.String Id)
sets subsystem ID
-
getByName
public CMSExtension getByName(java.lang.String name)
Get the extension class by name.- Parameters:
name
- name of the extension- Returns:
- the extension class.
-
getByOID
public CMSExtension 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.
-
-