为视图覆写一个现有的回调方法。
它们是生命周期回调方法。
创建了一个异步回调方法。
它是回调方法,在所有组件组装后调用。
This is a callback method that's invoked after all components are composed.
回调方法的主要优点如下。
我如何传递参数给委托的回调方法?
这种回调方法在异步网络框架中很常见。
This callback approach is common in asynchronous networking frameworks.
基于此,回调方法中的第一行应该如清单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.
因此还要在回调方法中增加状态检查,如清单14所示。
Add another status check to your callback method as shown in Listing 14.
这里有两种机制:回调方法和回调侦听器类。
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.
还有最后一点细节需要注意:这些回调方法返回一个布尔值。
One final detail remains: these callback methods return a Boolean value.
所有回调方法共有第一个参数作为一个特定业务组件的标识符。
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.
消息被传递给 WPS上的队列后,MDB的回调方法将被激活。
Upon a message delivery to the queue in WPS, the MDB's callback method is fired.
它还允许为单个的调用(或回调方法)附加一个IResponder。
It also allows an IResponder to be attached for an individual call (or, callback method).
通过为文档不同部分使用不同的内容处理程序,可以减少回调方法的复杂性和长度。
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.
案例研究2:由于未调用的侦听器回调方法而导致的内存泄漏的分析结果。
Case study 2: Analysis results for memory leak due to un-invoked listener call back method.
顾名思义,清单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.
应用推荐