JavaTM Platform
Standard Ed. 6

org.omg.CosNaming
类 NamingContextHolder

java.lang.Object
  继承者 org.omg.CosNaming.NamingContextHolder
所有已实现的接口:
Streamable

public final class NamingContextHolder
extends Object
implements Streamable

命名上下文是包含一组名称绑定的对象,在这些名称绑定中,每个名称都是唯一的。可以同时将不同名称绑定到相同或不同上下文中的对象。

请参阅 CORBA COS 命名规范


字段摘要
 NamingContext value
           
 
构造方法摘要
NamingContextHolder()
           
NamingContextHolder(NamingContext initialValue)
           
 
方法摘要
 void _read(InputStream i)
          从 istream 读取数据,并使用已解组数据初始化 Holder 的 value 字段。
 TypeCode _type()
          检索对应于 Holder 中 value 字段值的 TypeCode 对象。
 void _write(OutputStream o)
          将 Holder 中 value 字段的值编组到 ostream
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

value

public NamingContext value
构造方法详细信息

NamingContextHolder

public NamingContextHolder()

NamingContextHolder

public NamingContextHolder(NamingContext initialValue)
方法详细信息

_read

public void _read(InputStream i)
从接口 Streamable 复制的描述
istream 读取数据,并使用已解组数据初始化 Holder 的 value 字段。

指定者:
接口 Streamable 中的 _read
参数:
i - 表示导线中 CDR 数据的 InputStream。

_write

public void _write(OutputStream o)
从接口 Streamable 复制的描述
将 Holder 中 value 字段的值编组到 ostream

指定者:
接口 Streamable 中的 _write
参数:
o - CDR OutputStream

_type

public TypeCode _type()
从接口 Streamable 复制的描述
检索对应于 Holder 中 value 字段值的 TypeCode 对象。

指定者:
接口 Streamable 中的 _type
返回:
TypeCode 对象,对应于 holder 中保存的值

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策