directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r355445 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
Date Fri, 09 Dec 2005 10:55:46 GMT
Author: elecharny
Date: Fri Dec  9 02:55:42 2005
New Revision: 355445

URL: http://svn.apache.org/viewcvs?rev=355445&view=rev
Log:
Added a container for the Oid/name hashMap

Added:
    directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java

Added: directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java?rev=355445&view=auto
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
(added)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
Fri Dec  9 02:55:42 2005
@@ -0,0 +1,24 @@
+package org.apache.ldap.common.name;
+
+import java.util.HashMap;
+import java.util.Map;
+
+public class DnOidContainer 
+{
+	private static Map oidByName = new HashMap();
+	
+	private DnOidContainer()
+	{
+		// Empty private constructor
+	}
+
+	public static Object getOidByName( String name ) 
+	{
+		return oidByName.get( name );
+	}
+
+	public static void setOidByName(Map oidByName) 
+	{
+		DnOidContainer.oidByName = oidByName;
+	}
+}



Mime
View raw message