A delegate declaration is sufficient to define a delegate class.
一个委托声明足以定义一个委托类。
The StoreManagerDelegate class is the application's business delegate.
StoreManagerDelegate类是这个程序的业务代表。
Additionally, you can name your application delegate class whatever you want.
另外,你也可以任意命名你的应用程序委托类。
The CPURLConnection's delegate class defines the name of the method to be invoked.
CPURLConnection的代理类定义将被调用的方法的名的类。
By handling these events in your application delegate class, you have an opportunity to respond to them.
通过在应用程序委托类处理这些事件,你就能够响应它们。
Because our example application included a business delegate class, we placed the validation logic there.
因为示例应用程序包含了一个业务委派类,所以我们在其中放置了验证逻辑。
I can now implement and support a multicast delegate much easier in one single delegate class definition.
我现在可以实施和支持多播委托多,单一的委托类的定义更加容易。
Any procedure with matching parameter and return types can be used to create an instance of this delegate class.
任何具有匹配参数和返回类型的过程都可用于创建此委托类的实例。
To simplify the process of creating the markup language, the Delegate class has the job of crafting the actual HTML code.
为了简化创建标记语言的过程,delegate类负责生成实际的HTML代码。
Any procedure with matching parameter types and return type may be used to create an instance of this delegate class.
任何具有匹配参数类型和返回类型的过程均可用来创建此委托类的实例。
Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature.
与其他的类不同,委托类具有一个签名,并且它只能对与其签名匹配的方法进行引用。
This means that if the delegate class implements an interface, you are back in the business of creating a drop-in replacement for it.
这意味着如果delegate类实现了接口,您又回到了为它创建一个临时替代这件事上来。
The JAX-WS runtime is capable of dynamically generating a deployment descriptor or WSDL file by inspecting annotations in the delegate class.
JAX - WS运行时能够通过检查代理类中的注释来动态生成一个部署描述符或WSDL文件。
What differentiates the Eclipse extension and this particular implementation is that Eclipse's extension creates a delegate class to act as a proxy for the menu choice.
Eclipse扩展与这个特殊实现的区别是,Eclipse的扩展创建一个委派类作为菜单选项的代理。
These classes delegate responsibility for base class behavior to an instance of the base class.
这些类将基础类行为的责任委托给基础类的一个实例。
These class loaders can delegate not only to their parent, but also to their peers.
这些类装入器不仅可以委托给它们的双亲,还能委托给它们的对等体。
New operator — creates an instance of the delegate implementation class.
新运算符——创建委托实现类的实例。
The invocation handler class will also delegate method calls to a real implementation class in order to process the core business logic.
调用处理程序类还会把方法调用委托到真正的实现类,以便处理核心业务逻辑。
Figure 5 shows a class diagram of the delegate pattern.
图5显示了委托模式的类图。
Resource Class: Delegate the process to this resource class.
ResourceClass:将流程委托给该资源类。
Additionally, all class and delegate names have been renamed to include the prefix DataCache.
此外,所有的类和委托的名称都被重新命名,加上了DataCache前缀。
Thanks to the power of the @Delegate annotation, you were able to create a FixedList class in about 50 lines of code.
感谢 @Delegate注释的强大威力,我们只使用大约50代码就创建了FixedList类。
After you have created it, the session bean class is manually bound to the Business Service input parameter of the Business Delegate pattern instance.
创建它后,sessionbean类被手动绑定到BusinessDelegate模式实例的BusinessService输入参数。
This component does not have an assigned instance variable inside the view controller class, but you need to define the class delegate.
虽然此组件在视图控制器类内不具有已分配的实例变量,但是您需要定义类delegate。
Depending on your class, you may also want to delegate part of the computation to the equals() or hashCode() function of the superclass.
根据您使用的类,您可能希望降低superclass的equals()或hashCode()功能一部分计算能力。
Summary: If you have not already done so, delegate some or all of your advice logic to another class that you can test directly.
概述:如果还没有做的话,可以将一些或者全部建议逻辑委派给其他可以直接测试的类。
For example, the proxy class could delegate the method invocation to any other object or even handle it itself.
例如,代理类可以把方法调用委托其他任何对象,甚至是处理程序本身。
It will first validate method parameters upon a method invocation and then delegate the method call to the implementation class.
它首先验证方法调用的方法参数,然后把方法调用委托给实现类。
Since the delegate is the controller class, you can implement any of those four methods-and they are all optional.
由于代理是控制器类,因此您可以实现那4个方法中的任何一个—它们都是可选的。
Type forwarding means reassigning the definition of a class, structure, interface, delegate, or enumeration to an assembly other than the one in which it was originally defined.
“类型转发”是指将类、结构、接口、委托或枚举的定义重新分配到从中进行初始定义的程序集以外的一个程序集。
应用推荐