directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1074904 - /directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/AdsBaseBean.java
Date Sat, 26 Feb 2011 19:06:00 GMT
Author: kayyagari
Date: Sat Feb 26 19:05:59 2011
New Revision: 1074904

URL: http://svn.apache.org/viewvc?rev=1074904&view=rev
Log:
o make the the config bean enabled by default, this eliminates the burden of adding ads-enabled=true
for every entry by user

Modified:
    directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/AdsBaseBean.java

Modified: directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/AdsBaseBean.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/AdsBaseBean.java?rev=1074904&r1=1074903&r2=1074904&view=diff
==============================================================================
--- directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/AdsBaseBean.java
(original)
+++ directory/apacheds/trunk/server-config/src/main/java/org/apache/directory/server/config/beans/AdsBaseBean.java
Sat Feb 26 19:05:59 2011
@@ -32,9 +32,17 @@ import org.apache.directory.shared.util.
  */
 public abstract class AdsBaseBean
 {
-    /** The enabled flag */
+    /**
+     * The enabled flag, by default we treat every config entry
+     * as enabled if ads-enabled attribute is not present or if its
+     * value is set to 'TRUE'.
+     * A config entry is treated as disabled only if the value of 
+     * ads-enabled attribute is set to 'FALSE'
+     * 
+     * Note: the value true/false is case <b>insensitive</b>
+     */
     @ConfigurationElement(attributeType = "ads-enabled")
-    private boolean enabled = false;
+    private boolean enabled = true;
 
     /** The description */
     @ConfigurationElement(attributeType = "description")



Mime
View raw message