对Java中"上下文"(context)的理解

来源:互联网 发布:靠谱的网络兼职平台 编辑:程序博客网 时间:2024/06/01 22:27

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. 

从上面的文字来看,觉得所谓“上下文”就是一组名字和对象之间的联系,不知道这样理解对不对。。。

原创粉丝点击