aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactoryImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactoryImpl.java')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactoryImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactoryImpl.java b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactoryImpl.java
index 9750270..dab42ee 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactoryImpl.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactoryImpl.java
@@ -15,12 +15,13 @@ public class LDAPAPIFactoryImpl extends LDAPAPIFactory {
private static final Logger log = Logger.getLogger(LDAPAPIFactoryImpl.class);
// mapping <full qualified class name, LDAPAPI implementation>
- private Hashtable<String, LDAPAPI> ldapImpls;
+// private Hashtable<String, LDAPAPI> ldapImpls;
+ private Hashtable ldapImpls;
private LDAPIssuerNameFilter ldapIssuerNameFilter;
protected LDAPAPIFactoryImpl(LDAPIssuerNameFilter ldapIssuerNameFilter) {
- this.ldapImpls = new Hashtable<String, LDAPAPI>();
+ this.ldapImpls = new Hashtable();
this.ldapIssuerNameFilter = ldapIssuerNameFilter;
}
@@ -52,13 +53,12 @@ public class LDAPAPIFactoryImpl extends LDAPAPIFactory {
return ldapAPIImpl;
}
- @Override
public synchronized LDAPAPI createLDAPAPI(String implClassURI) throws LDAPAPIException {
if (implClassURI == null || implClassURI.length() == 0) {
// use internal implementation
implClassURI = LDAPAPIImpl.class.getName();
}
- LDAPAPI impl = this.ldapImpls.get(implClassURI);
+ LDAPAPI impl = (LDAPAPI) this.ldapImpls.get(implClassURI);
if (impl == null) {
impl = this.instantiatelAPIImpl(implClassURI);
this.ldapImpls.put(implClassURI, impl);