directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r359116 - /directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
Date Mon, 26 Dec 2005 22:45:24 GMT
Author: elecharny
Date: Mon Dec 26 14:45:21 2005
New Revision: 359116

URL: http://svn.apache.org/viewcvs?rev=359116&view=rev
Log:
Added a static initialization and a getInstance() method

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

Modified: 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=359116&r1=359115&r2=359116&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
(original)
+++ directory/shared/ldap/branches/DN-refactoring/common/src/main/java/org/apache/ldap/common/name/DnOidContainer.java
Mon Dec 26 14:45:21 2005
@@ -32,6 +32,12 @@
 	/** The internaml map containing the name, Oid, Normalizer */ 
 	private static Map oidByName = new HashMap();
 	
+	private static DnOidContainer instance;
+	
+	static
+	{
+		instance = new DnOidContainer();
+	}
 	/**
 	 * Private constructor. This class cannot be constructed
 	 *
@@ -39,6 +45,11 @@
 	private DnOidContainer()
 	{
 		// Empty private constructor
+	}
+	
+	public static DnOidContainer getInstance()
+	{
+		return instance;
 	}
 
 	/**



Mime
View raw message