KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > protocol > NotLocalLocalCRDImpl


1 /*
2  * @(#)NotLocalLocalCRDImpl.java 1.11 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.corba.se.impl.protocol;
9
10 import org.omg.CORBA.INTERNAL JavaDoc;
11 import org.omg.CORBA.portable.ServantObject JavaDoc;
12
13 import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcher ;
14
15 /**
16  * @author Harold Carr
17  */

18
19 public class NotLocalLocalCRDImpl implements LocalClientRequestDispatcher
20 {
21     public boolean useLocalInvocation(org.omg.CORBA.Object JavaDoc self)
22     {
23     return false;
24     }
25
26     public boolean is_local(org.omg.CORBA.Object JavaDoc self)
27     {
28     return false;
29     }
30
31     public ServantObject JavaDoc servant_preinvoke(org.omg.CORBA.Object JavaDoc self,
32                        String JavaDoc operation,
33                        Class JavaDoc expectedType)
34     {
35     // REVISIT: Rewrite rmic.HelloTest and rmic.LocalStubTest
36
// (which directly call servant_preinvoke)
37
// then revert to exception again.
38
return null;
39     //throw new INTERNAL();
40
}
41
42     public void servant_postinvoke(org.omg.CORBA.Object JavaDoc self,
43                    ServantObject JavaDoc servant)
44     {
45     //throw new INTERNAL();
46
}
47 }
48
49 // End of file.
50
Popular Tags