描述使用事件和回调方法的准则。
如果回调方法引发异常,则asp。
基于此,回调方法中的第一行应该如清单13所示。
To account for this, the first line in your callback method should be as shown in Listing 13.
生命周期方法也称为回调方法,因为它将由容器调用。
The lifecycle methods are also called callback methods as it will be called by the container.
这里有两种机制:回调方法和回调侦听器类。
There are two mechanisms: callback methods and callback listener classes. Here is an example of how you would write code to respond to a callback using callback methods.
在转换的过程中,回调方法被设置,并在复制过程中被调用。
During the transformation, call back methods are set and can be invoked during the copy process.
所有回调方法共有第一个参数作为一个特定业务组件的标识符。
All callback methods have in common the first parameter as the identifier of a particular business component instance.
当容器收到此前发送的请求的响应时,调用已定义的回调方法。
The container invokes the defined callback method when it receives a response for the previously sent request.
回调方法比轮询方法更及时,能确保响应被及时处理。
This method is timelier than the polling method and guarantees that the response is handled immediately.
您可以向功能区控件分配多种不同类型的回调方法。
There are many different types of callback methods that you can assign to Ribbon controls.
与显示初始化用户界面(UI)相关的异步回调方法。
The asynchronous callback method related to displaying the initialization user interface (UI).
消息被传递给 WPS上的队列后,MDB的回调方法将被激活。
Upon a message delivery to the queue in WPS, the MDB's callback method is fired.
回调方法是一种在操作或活动完成时由委托自动调用的方法。
A callback method is a method that is automatically invoked by a delegate when an operation or activity completes.
这意味着,命中测试结果回调方法在其枚举中将看不到这些对象。
This means that the hit test results callback method will not see these objects in its enumeration.
向标识代码中回调方法的功能区XML文件中的控件分配一个特性。
Assign an attribute to a control in the Ribbon XML file that identifies a callback method in your code.
例如,您可以创建一个在用户单击功能区上的按钮时调用的回调方法。
For example, you can create a callback method that is called when a user clicks a button on the Ribbon.
通过为文档不同部分使用不同的内容处理程序,可以减少回调方法的复杂性和长度。
You can reduce the complexity and length of your callback methods by using different content handlers for different parts of the document.
该接口注册了一种回调方法,当订阅到达订阅客户端时,就会调用该方法。
This interface registers a callback method that is called when a publication arrives at the subscribing client.
这个类包含file -visitor引擎穿越文件系统时所调用的回调方法。
This class contains the callback methods that the file-visitor engine will invoke as it traverses the file system.
顾名思义,清单1中的方法是回调方法,容器会在GBean的生命周期中调用它们。
As you can discern from their names, the methods in Listing 1 are callback methods that the container calls at the life cycle stages for your GBean.
回调方法将句柄返回应用程序,这样,应用程序能继续处理其他消息,不必轮询响应消息。
The callback method returns the handle back to the application so that it can keep processing other messages without having to poll for the response message.
这个接口为许多Hibernate事件提供回调方法,包括创建、修改和删除对象。
This interface provides callback methods for many different Hibernate events, including object creation, modification, and deletion.
但是,一旦您将代理设置为self,就应该为连接指定一个代理,而不是一个回调方法。
However, instead of specifying a callback method, specify a delegate for the connection, once you have set this to self.
如果处理大型的xml词汇表,您可能会发现在回调方法中有大量的if和else语句。
If you process large XML vocabularies, you may find yourself with a large number of if and else statements in your callback methods.
回调方法如期望那样被调用,我们可以看到,树中的所有文件都已列出,并且所有目录均已被访问。
Our callback methods were invoked as expected, and we can see that all the files in the tree have been listed and all the directories have been visited.
当一个引用被绑定到一个服务或这个服务被一个新的服务替换时,将调用绑定回调方法。
A bind callback is invoked when the reference is initially bound to a backing service, and whenever the backing service is replaced by a new backing service.
如果您正在使用XML方法来定义bean,那么就应该使用bean元素来定义生命周期回调方法。
If you are using XML approach to define the beans then you would use the bean element to define the lifecycle callback methods.
再说一次,这些是View类相关的回调方法,所以你只能在你构建自定义组件时定义它们。
Again, these are callbacks to the View class, so your only chance to define them is when you build a custom component.
该文件提供在远程接口中定义的所有方法以及应用服务器所需的方法(例如回调方法)的实现。
This file provides an implementation of all the methods defined in the remote interface, in addition to methods required by the application server (for example, callback methods).
此类实现BundleActivator接口,该接口具有两个回调方法:start和stop 。
The class implements the BundleActivator interface, which has two callback methods: start and stop .
应用推荐