diff options
Diffstat (limited to 'pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java')
-rw-r--r-- | pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java b/pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java index a5eb391d8..f03b81f3d 100644 --- a/pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java +++ b/pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java @@ -17,7 +17,6 @@ // --- END COPYRIGHT BLOCK --- package com.netscape.cmscore.extensions; - import java.util.Enumeration; import java.util.Hashtable; @@ -30,9 +29,8 @@ import com.netscape.certsrv.base.ISubsystem; import com.netscape.certsrv.extensions.EExtensionsException; import com.netscape.certsrv.extensions.ICMSExtension; - -/** - * Loads extension classes from configuration file and return +/** + * Loads extension classes from configuration file and return * for a given extension name or OID. */ public class CMSExtensionsMap implements ISubsystem { @@ -56,10 +54,11 @@ public class CMSExtensionsMap implements ISubsystem { /** * Create extensions from configuration store. + * * @param config the configuration store. */ - public void init(ISubsystem owner, IConfigStore config) - throws EBaseException { + public void init(ISubsystem owner, IConfigStore config) + throws EBaseException { mOwner = owner; mConfig = config; @@ -82,11 +81,11 @@ public class CMSExtensionsMap implements ISubsystem { } catch (IllegalAccessException e) { throw new EExtensionsException( CMS.getUserMessage("CMS_EXTENSION_INSTANTIATE_ERROR", - className, e.toString())); + className, e.toString())); } catch (InstantiationException e) { throw new EExtensionsException( CMS.getUserMessage("CMS_EXTENSION_INSTANTIATE_ERROR", - className, e.toString())); + className, e.toString())); } catch (ClassCastException e) { throw new EExtensionsException( CMS.getUserMessage("CMS_EXTENSION_INVALID_IMPL", className)); @@ -101,7 +100,7 @@ public class CMSExtensionsMap implements ISubsystem { if (name == null || oid == null) { throw new EExtensionsException( CMS.getUserMessage("CMS_EXTENSION_INCORRECT_IMPL", - ext.getClass().getName())); + ext.getClass().getName())); } mName2Ext.put(name, ext); mOID2Ext.put(oid.toString(), ext); @@ -120,29 +119,30 @@ public class CMSExtensionsMap implements ISubsystem { } /** - * Get configuration store. + * Get configuration store. */ public IConfigStore getConfigStore() { return mConfig; } /** - * Returns subsystem ID + * Returns subsystem ID */ public String getId() { return ID; } /** - * sets subsystem ID + * sets subsystem ID */ public void setId(String Id) { } /** * Get the extension class by name. + * * @param name name of the extension - * @return the extension class. + * @return the extension class. */ public ICMSExtension getByName(String name) { return (ICMSExtension) mName2Ext.get(name); @@ -150,6 +150,7 @@ public class CMSExtensionsMap implements ISubsystem { /** * Get the extension class by its OID. + * * @param oid - the OID of the extension. * @return the extension class. */ |