directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r713700 - in /directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util: AttributeFieldInterceptor.java FieldInterceptor.java
Date Thu, 13 Nov 2008 10:29:21 GMT
Author: kayyagari
Date: Thu Nov 13 02:29:20 2008
New Revision: 713700

URL: http://svn.apache.org/viewvc?rev=713700&view=rev
Log:
added javadoc and updated a method name

Modified:
    directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/AttributeFieldInterceptor.java
    directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/FieldInterceptor.java

Modified: directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/AttributeFieldInterceptor.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/AttributeFieldInterceptor.java?rev=713700&r1=713699&r2=713700&view=diff
==============================================================================
--- directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/AttributeFieldInterceptor.java
(original)
+++ directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/AttributeFieldInterceptor.java
Thu Nov 13 02:29:20 2008
@@ -74,7 +74,7 @@
         EntryFieldInterceptor interceptor = ( EntryFieldInterceptor ) ( ( InterceptFieldEnabled
) entry ).getInterceptFieldCallback();
 
         // this name is important to identify the modified field 
-        name = ( ( Attribute ) obj ).getAttrName();
+        name = ( ( Attribute ) obj ).getName();
 
         interceptor.interceptWrite( entry, name, obj, newValue );
     }

Modified: directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/FieldInterceptor.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/FieldInterceptor.java?rev=713700&r1=713699&r2=713700&view=diff
==============================================================================
--- directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/FieldInterceptor.java
(original)
+++ directory/sandbox/kayyagari/apacheds-olm/src/main/java/org/apache/directory/olm/util/FieldInterceptor.java
Thu Nov 13 02:29:20 2008
@@ -22,18 +22,41 @@
 
 import net.sf.cglib.transform.impl.InterceptFieldCallback;
 
+
 /**
  * 
- * TODO FieldInterceptor.
+ * FieldInterceptor.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
 public abstract class FieldInterceptor implements InterceptFieldCallback
 {
+    /**
+     * 
+     * called by all writeXXX methods for doing any specific work like dirty field tracking.
+     *
+     * @param obj the Object in which a field is about to be written with a new value
+     * @param name name of the field
+     * @param oldValue field's old value
+     * @param newValue fields new value
+     */
     protected abstract void interceptWrite( Object obj, String name, Object oldValue, Object
newValue );
+
+
+    /**
+     * 
+     * called by all readXXX methods for doing any specific work.
+     *
+     * @param obj the Object in which a field's value is read
+     * @param name name of the field
+     * @param oldValue field's old value
+     */
     protected abstract void interceptRead( Object obj, String name, Object oldValue );
 
+
+    // ------------ write methods -----------------------------
+
     public boolean writeBoolean( Object obj, String name, boolean oldValue, boolean newValue
)
     {
         interceptWrite( obj, name, oldValue, newValue );
@@ -97,8 +120,8 @@
     }
 
 
-    //------------------read methods-------------------
-    
+    //------------------ read methods -------------------
+
     public boolean readBoolean( Object obj, String name, boolean oldValue )
     {
         interceptRead( obj, name, oldValue );



Mime
View raw message