Author: akarasulu Date: Sun Jan 30 08:17:43 2005 New Revision: 149122 URL: http://svn.apache.org/viewcvs?view=rev&rev=149122 Log: adding Dictionary wrapper creation on Preferences and a change log Added: incubator/directory/apacheds/trunk/CHANGES.txt Modified: incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/prefs/ServerSystemPreferences.java
Added: incubator/directory/apacheds/trunk/CHANGES.txt Url: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/CHANGES.txt?view=auto&rev=149122 ============================================================================== --- (empty file) +++ incubator/directory/apacheds/trunk/CHANGES.txt Sun Jan 30 08:17:43 2005 @@ -0,0 +1,6 @@ +Changes 0.8 +=========== + + o added Preferences implementation for system settings (user Prefs not done) + o added support for JNDI state factories and object factories + Modified: incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/prefs/ServerSystemPreferences.java Url: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/prefs/ServerSystemPreferences.java?view=diff&rev=149122&p1=incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/prefs/ServerSystemPreferences.java&r1=149121&p2=incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/prefs/ServerSystemPreferences.java&r2=149122 ============================================================================== --- incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/prefs/ServerSystemPreferences.java (original) +++ incubator/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/prefs/ServerSystemPreferences.java Sun Jan 30 08:17:43 2005 @@ -17,10 +17,7 @@ package org.apache.ldap.server.prefs; -import java.util.Hashtable; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; +import java.util.*; import java.util.prefs.AbstractPreferences; import java.util.prefs.BackingStoreException; @@ -33,6 +30,7 @@ import javax.naming.ldap.InitialLdapContext; import org.apache.ldap.common.Lockable; +import org.apache.ldap.common.util.PreferencesDictionary; import org.apache.ldap.common.message.LockableAttributeImpl; import org.apache.ldap.common.message.LockableAttributesImpl; import org.apache.ldap.server.jndi.ServerContextFactory; @@ -129,6 +127,22 @@ // ------------------------------------------------------------------------ + /** + * Wrapps this Preferences object as a Dictionary. + * + * @return a Dictionary that uses this Preferences object as the underlying backing store + */ + public Dictionary wrapAsDictionary() + { + return new PreferencesDictionary( this ); + } + + + /** + * Gets access to the LDAP context associated with this Preferences node. + * + * @return the LDAP context associate with this Preferences node + */ LdapContext getLdapContext() { return ctx;
