KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)MinimalServantCacheLocalCRDImpl.java 1.14 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
9 package com.sun.corba.se.impl.protocol ;
10
11 import org.omg.CORBA.portable.ServantObject JavaDoc ;
12
13 import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory ;
14 import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcher ;
15
16 import com.sun.corba.se.spi.ior.IOR ;
17
18 import com.sun.corba.se.spi.oa.OAInvocationInfo ;
19
20 import com.sun.corba.se.spi.orb.ORB ;
21
22 public class MinimalServantCacheLocalCRDImpl extends ServantCacheLocalCRDBase
23 {
24     public MinimalServantCacheLocalCRDImpl( ORB orb, int scid, IOR ior )
25     {
26     super( (com.sun.corba.se.spi.orb.ORB)orb, scid, ior ) ;
27     }
28
29     public ServantObject JavaDoc servant_preinvoke( org.omg.CORBA.Object JavaDoc self,
30     String JavaDoc operation, Class JavaDoc expectedType )
31     {
32     OAInvocationInfo cachedInfo = getCachedInfo() ;
33     if (checkForCompatibleServant( cachedInfo, expectedType ))
34         return cachedInfo ;
35     else
36         return null ;
37     }
38
39     public void servant_postinvoke(org.omg.CORBA.Object JavaDoc self,
40                                    ServantObject JavaDoc servantobj)
41     {
42     }
43 }
44
Popular Tags