CDI包含一个cdi容器服务,该服务根据应用程序作用域声明自动管理作用域;容器根据需要创建和销毁CDIbean。
CDI includes a CDI container service that manages scope automatically depending on the application scope declaration; CDI beans are created and destroyed on demand by the container.
为阐述该机制的功能,Ruby语言本身使用sticky属性来声明private、protected和public类作用域修饰符。
To illustrate this mechanism's power, the Ruby language itself USES sticky attributes to declare private, protected, and public class-scope modifiers.
所有这四个变量都是在循环外声明的,尽管它们仅在循环内部使用,但作用域不止于此。
All four variables are declared outside the loop and therefore have excessive scope even though they're only used inside the loop.
大多数面向对象语言都有控制类型或者类型成员可见性(作用域)声明的结构。
Most object-oriented languages have constructs to constrain the visibility (or scope) of type and type-member declarations.
作用域不适于使用的内存数不可预测的任务,因为作用域的大小是固定的,必须预先声明。
Scopes are poorly suited to tasks that use an unpredictable amount of memory because a scope's size is fixed and must be predeclared.
为了在一个JS p页面内使用有session作用域的数据,必须首先声明这个页面要参与会话。
In order to use session-scoped data within a JSP page, you must first declare that the page participates in sessions.
在一篇发神经的文档中,同一作用域围内为同一名称空间声明了两个不同的前缀。
In a psychotic document, two different prefixes are declared for the same namespace in the same scope.
由于zipCode元素的定义位于address元素的声明中,所以它是一个局部定义,它的作用域只在address元素中。
Because the definition of the zipCode element is within the declaration of the address element, it is a local definition and has scope only inside an address element.
根据声明这些变量的方式及位置,这三类变量有以下五种作用域。
There are five types of scope that these three types of variables can have, depending on how and where they are declared.
使用nsstack类跟踪XML名称空间声明的作用域。
Use the NSStack class to track the scope of XML namespace declarations.
实现作用域内当前名称空间声明堆栈的数据结构。
NsStack: a data structure that implements a stack of namespace declarations that are currently in scope.
如果一个命名声明为全局的,那么所有的赋值和引用都直接针对包含模全局命名的中级作用域。
If a name is declared global, then all references and assignments go directly to the middle scope containing the module's global names.
如果一个名字声明为全局,那么所有的引用与赋值直接进入包含模块全局名字的中间作用域。
If a name is declared global then all references and assignments go directly to the middle scope containing the module's global names.
但为了解释作用域与重载的相互作用,我们将违反上述规则而使用局部函数声明。
To explain how scope interacts with overloading we will violate this practice and use a local function declaration.
如果一个名称被声明为全局的,那么所有的赋值和引用都会直接从包含模块全局名称的中层作用域开始。
If a name is declared global, then all references and assignments go directly to the middle scope containing the module's global names.
块(6.3)中声明的名字是局部于这个块的。它的潜在作用域从其声明点(3.3.1)开始,到其声明区域的结尾结束。
A name declared in a block (6.3) is local to that block. Its potential scope begins at its point of declaration (3.3.1) and ends at the end of its declarative region.
注:3.5讨论连接性的问题。作用域,声明点和名字隐藏的概念在3.3 中讨论。
Note: 3.5 discusses linkage issues. The notions of scope, point of declaration and name hiding are discussed in 3.3.
在函数中局部声明的名字将屏蔽在全局作用域(第2.3.6节)内声明的同名名字。
A name declared local to a function hides the same name declared in the global scope (Section 2.3.6, p. 54).
在函数中局部声明的名字将屏蔽在全局作用域(第2.3.6节)内声明的同名名字。
A name declared local to a function hides the same name declared in the global scope (Section 2.3.6, p. 54).
应用推荐