directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r371308 - /directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/BaseIoSession.java
Date Sun, 22 Jan 2006 14:36:22 GMT
Author: trustin
Date: Sun Jan 22 06:36:20 2006
New Revision: 371308

URL: http://svn.apache.org/viewcvs?rev=371308&view=rev
Log:
Fixed failing tests

Modified:
    directory/sandbox/trustin/mina-spi/core/src/main/java/org/apache/mina/common/support/BaseIoSession.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=371308&r1=371307&r2=371308&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 06:36:20 2006
@@ -47,26 +47,26 @@
      * Registers the specified {@link IoSessionAttributeOverrider} to the specified
      * {@link IoServiceProvider}. 
      */
-    public static void registerAttributeOverrider( Class providerClass, IoSessionAttributeOverrider
overrider )
+    public static void registerAttributeOverrider( Class sessionType, IoSessionAttributeOverrider
overrider )
     {
-        Map overriders = ( Map ) provider2attributeOverriders.get( providerClass );
+        Map overriders = ( Map ) provider2attributeOverriders.get( sessionType );
         if( overriders == null )
         {
             overriders = new HashMap();
-            provider2attributeOverriders.put( providerClass, overriders );
+            provider2attributeOverriders.put( sessionType, overriders );
         }
         
         overriders.put( overrider.getKey(), overrider );
     }
     
-    private static Map getAttributeOverriders( Class providerClass )
+    private static Map getAttributeOverriders( Class sessionType )
     {
-        return ( Map ) provider2attributeOverriders.get( providerClass );
+        return ( Map ) provider2attributeOverriders.get( sessionType );
     }
     
-    private static IoSessionAttributeOverrider getAttributeOverrider( Class providerClass,
String key )
+    private static IoSessionAttributeOverrider getAttributeOverrider( Class sessionType,
String key )
     {
-        Map overriders = ( Map ) provider2attributeOverriders.get( providerClass );
+        Map overriders = ( Map ) provider2attributeOverriders.get( sessionType );
         if( overriders == null )
         {
             return null;
@@ -207,7 +207,7 @@
         }
         
         IoSessionAttributeOverrider overrider =
-            getAttributeOverrider( getProvider().getClass(), key );
+            getAttributeOverrider( this.getClass(), key );
         if( overrider == null )
         {
             return null;
@@ -230,7 +230,7 @@
     public Object setAttribute( String key, Object value )
     {
         IoSessionAttributeOverrider overrider =
-            getAttributeOverrider( getProvider().getClass(), key );
+            getAttributeOverrider( this.getClass(), key );
         if( overrider != null )
         {
             try
@@ -273,7 +273,7 @@
 
     public Set getAttributeKeys()
     {
-        Map overriders = getAttributeOverriders( getProvider().getClass() );
+        Map overriders = getAttributeOverriders( this.getClass() );
         Set keys = new HashSet( attributes.size() + overriders.size() );
 
         synchronized( attributes )



Mime
View raw message