/[classpath]/classpath/gnu/CORBA/IOR_Delegate.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/IOR_Delegate.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by audriusa, Fri Jun 3 15:12:30 2005 UTC revision 1.3 by audriusa, Tue Jun 7 13:30:11 2005 UTC
# Line 56  import org.omg.CORBA.portable.RemarshalE Line 56  import org.omg.CORBA.portable.RemarshalE
56    
57  import java.io.IOException;  import java.io.IOException;
58    
59    import java.net.Socket;
60    
61  /**  /**
62   * The Classpath implementation of the {@link Delegate} functionality in the   * The Classpath implementation of the {@link Delegate} functionality in the
63   * case, when the object was constructed from an IOR object. The IOR can be   * case, when the object was constructed from an IOR object. The IOR can be
# Line 281  public class IOR_Delegate Line 283  public class IOR_Delegate
283    
284      return request.getParameterStream();      return request.getParameterStream();
285    }    }
286  }  
287      /**
288       * If there is an opened cache socket to access this object, close
289       * that socket.
290       *
291       * @param target The target is not used, this delegate requires a
292       * single instance per object.
293       */
294      public void release(org.omg.CORBA.Object target)
295      {
296        String key = ior.Internet.host + ":" + ior.Internet.port;
297    
298        Socket socket = SocketRepository.get_socket(key);
299        try
300          {
301            if (socket != null)
302              {
303                socket.close();
304              }
305          }
306        catch (IOException ex)
307          {
308            // do nothing, then.
309          }
310      }
311    }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26