infoonlyservantcachelocalcrdimpl.java
来自「JAVA 所有包」· Java 代码 · 共 51 行
JAVA
51 行
/* * @(#)InfoOnlyServantCacheLocalCRDImpl.java 1.15 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.impl.protocol;import org.omg.CORBA.portable.ServantObject ;import com.sun.corba.se.spi.oa.OAInvocationInfo ;import com.sun.corba.se.spi.orb.ORB ;import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcherFactory ;import com.sun.corba.se.spi.protocol.LocalClientRequestDispatcher ;import com.sun.corba.se.spi.ior.IOR;public class InfoOnlyServantCacheLocalCRDImpl extends ServantCacheLocalCRDBase{ public InfoOnlyServantCacheLocalCRDImpl( ORB orb, int scid, IOR ior ) { super( (com.sun.corba.se.spi.orb.ORB)orb, scid, ior ) ; } public ServantObject servant_preinvoke( org.omg.CORBA.Object self, String operation, Class expectedType ) { OAInvocationInfo cachedInfo = getCachedInfo() ; if (!checkForCompatibleServant( cachedInfo, expectedType )) return null ; // Note that info is shared across multiple threads // using the same subcontract, each of which may // have its own operation. Therefore we need to copy it. OAInvocationInfo info = new OAInvocationInfo(cachedInfo, operation) ; orb.pushInvocationInfo( info ) ; return info ; } public void servant_postinvoke(org.omg.CORBA.Object self, ServantObject servantobj) { orb.popInvocationInfo() ; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?