/[classpath]/classpath/gnu/CORBA/Poa/LocalRequest.java
ViewVC logotype

Diff of /classpath/gnu/CORBA/Poa/LocalRequest.java

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

revision 1.5 by audriusa, Fri Oct 28 13:01:52 2005 UTC revision 1.6 by audriusa, Fri Oct 28 14:05:21 2005 UTC
# Line 288  public class LocalRequest extends gnuReq Line 288  public class LocalRequest extends gnuReq
288            request_part.create_input_stream();            request_part.create_input_stream();
289    
290          // Ensure the servant (handler) has a delegate set.          // Ensure the servant (handler) has a delegate set.
291          servantDelegate sd = null;          ServantDelegateImpl sd = null;
292    
293          Delegate d = null;          Delegate d = null;
294    
# Line 300  public class LocalRequest extends gnuReq Line 300  public class LocalRequest extends gnuReq
300            {            {
301              // In some cases exception is thrown if the delegate is not set.              // In some cases exception is thrown if the delegate is not set.
302            }            }
303          if (d instanceof servantDelegate)          if (d instanceof ServantDelegateImpl)
304            {            {
305              // If the delegate is already set, try to reuse the existing              // If the delegate is already set, try to reuse the existing
306              // instance.              // instance.
307              sd = (servantDelegate) d;              sd = (ServantDelegateImpl) d;
308              if (sd.object != object)              if (sd.object != object)
309                {                {
310                  sd = new servantDelegate(servant, poa, Id);                  sd = new ServantDelegateImpl(servant, poa, Id);
311                }                }
312            }            }
313          else          else
314            {            {
315              sd = new servantDelegate(servant, poa, Id);              sd = new ServantDelegateImpl(servant, poa, Id);
316            }            }
317          servant._set_delegate(sd);          servant._set_delegate(sd);
318    
# Line 531  public class LocalRequest extends gnuReq Line 531  public class LocalRequest extends gnuReq
531    {    {
532      InvokeHandler handler = object.getHandler(operation(), cookie, false);      InvokeHandler handler = object.getHandler(operation(), cookie, false);
533    
534      if (handler instanceof dynImpHandler)      if (handler instanceof DynamicImpHandler)
535        {        {
536          DynamicImplementation dyn = ((dynImpHandler) handler).servant;          DynamicImplementation dyn = ((DynamicImpHandler) handler).servant;
537          if (serverRequest == null)          if (serverRequest == null)
538            {            {
539              serverRequest = new LocalServerRequest(this);              serverRequest = new LocalServerRequest(this);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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