summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2011-12-07 16:58:12 -0500
committerAde Lee <alee@redhat.com>2011-12-07 16:58:12 -0500
commit32150d3ee32f8ac27118af7c792794b538c78a2f (patch)
tree52dd96f664a6fa51be25b28b6f10adc5f2c9f660 /pki/base/common/src/com/netscape/cmscore/extensions/CMSExtensionsMap.java
parentf05d58a46795553beb8881039cc922974b40db34 (diff)
downloadpki-32150d3ee32f8ac27118af7c792794b538c78a2f.tar.gz
pki-32150d3ee32f8ac27118af7c792794b538c78a2f.tar.xz
pki-32150d3ee32f8ac27118af7c792794b538c78a2f.zip
Formatting
Formatted project according to eclipse project settings
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.java48
1 files changed, 24 insertions, 24 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..976de41e1 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,10 +29,9 @@ 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
- * for a given extension name or OID.
+/**
+ * Loads extension classes from configuration file and return for a given
+ * extension name or OID.
*/
public class CMSExtensionsMap implements ISubsystem {
public static String ID = "extensions";
@@ -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;
@@ -77,19 +76,19 @@ public class CMSExtensionsMap implements ISubsystem {
ext.init(this, c);
addExt(ext);
} catch (ClassNotFoundException e) {
- throw new EExtensionsException(
- CMS.getUserMessage("CMS_EXTENSION_CLASS_NOT_FOUND", className));
+ throw new EExtensionsException(CMS.getUserMessage(
+ "CMS_EXTENSION_CLASS_NOT_FOUND", className));
} catch (IllegalAccessException e) {
- throw new EExtensionsException(
- CMS.getUserMessage("CMS_EXTENSION_INSTANTIATE_ERROR",
- className, e.toString()));
+ throw new EExtensionsException(CMS.getUserMessage(
+ "CMS_EXTENSION_INSTANTIATE_ERROR", className,
+ e.toString()));
} catch (InstantiationException e) {
- throw new EExtensionsException(
- CMS.getUserMessage("CMS_EXTENSION_INSTANTIATE_ERROR",
- className, e.toString()));
+ throw new EExtensionsException(CMS.getUserMessage(
+ "CMS_EXTENSION_INSTANTIATE_ERROR", className,
+ e.toString()));
} catch (ClassCastException e) {
- throw new EExtensionsException(
- CMS.getUserMessage("CMS_EXTENSION_INVALID_IMPL", className));
+ throw new EExtensionsException(CMS.getUserMessage(
+ "CMS_EXTENSION_INVALID_IMPL", className));
}
}
}
@@ -99,9 +98,8 @@ public class CMSExtensionsMap implements ISubsystem {
ObjectIdentifier oid = ext.getOID();
if (name == null || oid == null) {
- throw new EExtensionsException(
- CMS.getUserMessage("CMS_EXTENSION_INCORRECT_IMPL",
- ext.getClass().getName()));
+ throw new EExtensionsException(CMS.getUserMessage(
+ "CMS_EXTENSION_INCORRECT_IMPL", ext.getClass().getName()));
}
mName2Ext.put(name, ext);
mOID2Ext.put(oid.toString(), ext);
@@ -120,29 +118,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 +149,7 @@ public class CMSExtensionsMap implements ISubsystem {
/**
* Get the extension class by its OID.
+ *
* @param oid - the OID of the extension.
* @return the extension class.
*/