It manages the scopes behind the scenes for you.
它在幕后为您管理作用域。
Are scopes defined by curly braces or by functions?
范围是由花括号定义的还是函数定义的?
Scope.admin package - used to create or delete scopes.
admin包——用于创建或删除范围。
Resource scopes are simply an administrative convenience.
资源范围仅为方便管理而存在。
In J2EE Web applications, there are four session scopes.
在J2EEWeb应用程序中,一共有4种会话作用域。
However, in many cases, scopes may cross multiple components.
但是,在许多情况下,范围可能跨多个组件。
In a distributed environment, scopes cross multiple components.
在分布式环境中,范围跨多个组件。
Handle scopes can only be stack-allocated, not allocated with new.
句柄范围只能是在栈上分配的,不能通过new来分配。
Table 5.1, "visibility scopes." summarizes the visibility scopes.
表格5.1,“可见域”总结了可见性的范围。
There are some scopes that seem to be natural for grouping purposes.
有一些范围对分组目的来说似乎是很正常的。
Modify variables that are defined on the scope or on enclosed scopes.
修改在范围或封闭范围中定义的变量。
Session is the heart and soul of stateful J2EE Web application scopes.
session是有状态J2EEWeb应用程序作用域的核心和灵魂。
If finalize methods create threads, scopes may not be cleared as expected.
如果finalize方法创建线程,则范围可能不能如期被清除。
The other issue is how to automatically release objects based on their scopes.
另一个问题是如何根据对象的范围自动释放对象。
Refer to the servlet API for more information on the above types of scopes.
有关以上作用域类型的更多信息,请参考servletAPI。
Table 2 identifies the four class types that correspond to the four session scopes.
表2标出了4个类,分别对应于4种会话作用域。
As a result, some developers find using scopes difficult and vulnerable to mistakes.
结果,一些开发人员发现使用作用域比较困难而且易于出错。
Although both EUP and TOGAF function at an organization-wide level, their scopes differ.
虽然EUP和TOGAF都工作于组织层面上,但是它们的范围不同。
Users can easily create their own scopes and set up custom events (e.g. a web request scope).
用户可以毫不费力地创建出自己的作用域和自定义事件(比如web请求的作用域)。
Spring has traditionally offered two scopes for beans: singleton and Prototype (or non-singleton).
Spring之前为bean提供了两种作用域:单例和原型(或者叫非单例)。
In order to intelligently manage user data, we have to contextualize it; and for this we use scopes.
为了智能地管理用户数据,必须将其置于上下文中。出于这个原因,我们使用作用域。
With those definitions in mind, we can "scope out" some rules of thumb for using the different scopes.
记住了这些定义,我们就可以制定使用不同作用域的一些原则。
The portlet automatically scopes itself to the content that it owns, which is primed by the component.
这个portlet自动地把本身限制为只显示自己拥有的内容,这些内容由组件提供。
Each of the four scopes has a different mechanism for storing and ultimately accessing contextual data.
在这4种作用域中,每一种作用域都有一个不同的机制,用于存储并最终访问上下文相关的数据。
To use the object manager defined in the last section and to identify scopes, you'll need to use scope keys.
为了使用前一节中定义的对象管理器和标识范围,需要使用范围键。
The principles, scopes and practices of our export control are basically identical to international standards.
我们有关的出口控制原则、范围和做法与国际基本接轨。
Designers of RT applications typically associate scopes with specific tasks so they can be tuned effectively.
RT应用程序的设计者通常会将作用域与指定任务关联在一起,以便有效调优。
Having the object manager understand scopes addresses one of the issues raised at the beginning of this article.
让对象管理器理解范围的概念,就可以解决本文开头提到的一个问题。
We should promote regional economic integration at different levels, in various scopes and through multiple channels.
我们应该在不同层次、不同范围、通过多种途径推动区域经济一体化。
Instead of needing to consider which scopes are required, you simply decide how long the object must be retained.
您不用考虑对象需要使用何种作用域,只是决定对象的保留时间即可。
应用推荐