⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 servantcachingpolicy.java

📁 java jdk 1.4的源码
💻 JAVA
字号:
/* * @(#)ServantCachingPolicy.java	1.3 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.extension ;import org.omg.CORBA.Policy ;import org.omg.CORBA.LocalObject ;import com.sun.corba.se.internal.orbutil.ORBConstants ;/** Policy used to implement servant caching optimization in the POA.*/public class ServantCachingPolicy extends LocalObject implements Policy{    private static ServantCachingPolicy policy = null ;    private ServantCachingPolicy()     {    }    public synchronized static ServantCachingPolicy getPolicy()    {	if (policy == null)	    policy = new ServantCachingPolicy() ;	return policy ;    }    public int policy_type ()    {	return ORBConstants.SERVANT_CACHING_POLICY ;    }    public org.omg.CORBA.Policy copy ()    {	return this ;    }    public void destroy ()    {    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -