directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r371286 - in /directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support: BaseIoSession.java IoSessionAttributeOverrider.java
Date Sun, 22 Jan 2006 13:19:10 GMT
Author: trustin
Date: Sun Jan 22 05:19:06 2006
New Revision: 371286

URL: http://svn.apache.org/viewcvs?rev=371286&view=rev
Log:
Added IoSession parameter to IoSessionAttributeOverrider for less footprint

Modified:
    directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
    directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/IoSessionAttributeOverrider.java

Modified: directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java?rev=371286&r1=371285&r2=371286&view=diff
==============================================================================
--- directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
(original)
+++ directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
Sun Jan 22 05:19:06 2006
@@ -172,7 +172,7 @@
             {
                 try
                 {
-                    return overrider.getValue();
+                    return overrider.getValue( this );
                 }
                 catch( RuntimeException e )
                 {
@@ -200,7 +200,7 @@
             {
                 try
                 {
-                    return overrider.setValue( value );
+                    return overrider.setValue( this, value );
                 }
                 catch( RuntimeException e )
                 {

Modified: directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/IoSessionAttributeOverrider.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/IoSessionAttributeOverrider.java?rev=371286&r1=371285&r2=371286&view=diff
==============================================================================
--- directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/IoSessionAttributeOverrider.java
(original)
+++ directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/IoSessionAttributeOverrider.java
Sun Jan 22 05:19:06 2006
@@ -18,9 +18,11 @@
  */
 package org.apache.mina.common.support;
 
+import org.apache.mina.common.IoSession;
+
 /**
  * Overrides the behavior of user-defined attribute getters and setters in 
- * {@link BaseIoSession}.
+ * {@link IoSession}.
  *
  * @author The Apache Directory Project (dev@directory.apache.org)
  * @version $Rev$, $Date$
@@ -35,12 +37,12 @@
     /**
      * Invoked when user reads the attribute.
      */
-    Object getValue() throws Exception;
+    Object getValue( IoSession session ) throws Exception;
     
     /**
      * Invoked when user sets the attribute.
      * 
      * @return the old attribute
      */
-    Object setValue( Object value ) throws Exception;
+    Object setValue( IoSession session, Object value ) throws Exception;
 }



Mime
View raw message