在本例中,委托模型是一个正确的图(带有循环),所以死锁的发生可能是使用特定的类关系和线程的结果。
In this case, the delegation model is a proper graph (with cycles), and so a deadlock can occur as a result of particular class relationships and thread usage.
这个方法现在工作得很好;但是,它现在遵循的是标准类装入委托(缓存、双亲、磁盘)。
This method will now work fine; however, it now follows the standard class loading delegation (cache, parent, disk).
下面的统一建模语言(UML)类图说明了在 Go-ForIt 中是如何使用委托的
The following unified modeling language (UML) class diagram illustrates how delegation was used in Go-ForIt
通过在应用程序委托类处理这些事件,你就能够响应它们。
By handling these events in your application delegate class, you have an opportunity to respond to them.
另外,你也可以任意命名你的应用程序委托类。
Additionally, you can name your application delegate class whatever you want.
这些类将基础类行为的责任委托给基础类的一个实例。
These classes delegate responsibility for base class behavior to an instance of the base class.
考虑到我是ejb倡导者,您可以想像得到我倾向于使用不采用各个委托类的J2EE组件。
Given that I am the EJB Advocate, you can imagine that I lean towards using J2EE components without separate delegate classes.
与显式类装入一样,如果类已经装入了,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
As with explicit class loading, if the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
例如,代理类可以把方法调用委托其他任何对象,甚至是处理程序本身。
For example, the proxy class could delegate the method invocation to any other object or even handle it itself.
这些类装入器不仅可以委托给它们的双亲,还能委托给它们的对等体。
These class loaders can delegate not only to their parent, but also to their peers.
它还允许您构建一个抽象实现,从而使实际实现委托给覆盖基本实现的类。
It also allows you to build an abstract implementation that defers the actual implementation to classes that override the base.
新运算符——创建委托实现类的实例。
New operator — creates an instance of the delegate implementation class.
在列出类装入器的时候,父类在子女之前列出,因为标准的委托模型的工作方式是父类优先。
The class loaders are listed with parents before children because of the way that the standard delegation model works: parents go first.
在开始这篇文章之前,应当熟悉类装入委托模型,以及类链接的阶段和过程。
Before you begin this article, you should be familiar with the class loader delegation model, along with the phases and stages of class linking.
方法现在在试图自己找到类之前,先委托给自己的双亲类装入器。
The method now delegates to its parent class loader before attempting to find the class itself.
通常,以通用的方式使用POJO委托类来简化对服务的调用。
POJO delegate classes are often used simplify invoking services in a common way.
它首先验证方法调用的方法参数,然后把方法调用委托给实现类。
It will first validate method parameters upon a method invocation and then delegate the method call to the implementation class.
调用处理程序类还会把方法调用委托到真正的实现类,以便处理核心业务逻辑。
The invocation handler class will also delegate method calls to a real implementation class in order to process the core business logic.
类装入器委托模型是把装入请求相互传给对方的类装入器图。
The class loader delegation model is the graph of class loaders that pass loading requests to each other.
如果类已经装入,那么只是返回一个引用;否则,装入器会通过委托模型装入类。
If the class is already loaded, then a reference is simply returned; otherwise, the loader goes through the delegation model to load the class.
对等类装入不遵循传统的类装入器层次委托结构。
Peer class loading does not follow the traditional hierarchical delegation structure for class loaders.
因为死锁的类装入器的标识已知,所以可以检查这些类装入器使用的委托模型。
Because the identities of the deadlocked class loaders are known, it is possible to examine the delegation model that these class loaders are using.
您控制了父-子、子-父委托的类加载器。
You control the classloader for parent-child child-parent delegation.
在委托调度方法中,控制器类可以实现多个api。
In the delegated dispatching approach, a controller class may implement more than one API.
换句话说,便利层中的每个特性通过委托和组织相关的dom层元素类实现便利层api。
In other words, each feature in the convenience layer delegates and organizes related element classes of the DOM layer to implement the convenience layer API.
图5显示了委托模式的类图。
与MBean实现类中的典型情况一样,每个操作实现起来都很细碎,所以把实现委托给了底层受管对象。
As is typical with MBean implementation classes, each of the operations is trivial to implement, delegating to the underlying managed object.
该注释允许您向任意类添加一个或多个委托—而不仅仅是ExpandoMetaClass。
This annotation allows you to add one or more delegates to any of your classes - not just ExpandoMetaClass.
该注释允许您向任意类添加一个或多个委托—而不仅仅是ExpandoMetaClass。
This annotation allows you to add one or more delegates to any of your classes - not just ExpandoMetaClass.
应用推荐