A naming service associates names with objects. An association between a name and an object is called a binding, and a set of such bindings is called a context. A name in a context can be bound to another context that uses the same naming conventions; the bound context is called a subcontext. For example, in a filesystem, a directory (such as /temp) is a context that contains bindings between filenames and objects that the system can use to manipulate the files (often called file handles). If a directory contains a binding for another directory (e.g., /temp/javax), the subdirectory is a subcontext.
从上面的文字来看,觉得所谓“上下文”就是一组名字和对象之间的联系,不知道这样理解对不对。。。
本文解析了命名服务的概念,探讨了名称与对象之间的绑定关系,并解释了什么是上下文和子上下文,通过文件系统的例子来说明这些概念的实际应用。

2809

被折叠的 条评论
为什么被折叠?



