在本文中,我用真正的类实现回调。
这个文件将URL映射到回调函数。
SAX解析器运行在回调模型上。
具有确认和回调的同步更新请求
Synchronous update request with acknowledgement and call-back
这是通过支持回调接口的概念实现的。
This is accomplished by supporting the notion of a callback interface.
使用各种回调从用户处收集登录信息。
Collect the login information from the user using various callbacks.
使用引用的组件将实现回调接口。
The component that uses the reference implements the callback interface.
不需要进行JMX回调。
它还为响应实现回调模式。
它继续执行,直到从远程服务器收到异步回调。
It continues executing until it receives an asynchronous callback from the remote server.
这些回调函数的细节将在下面两个小节中讲解。
Details of these call back functions are described in the following two sections.
有些充当回调机制的容器事件,也注册到了这里。
Some container events, which act as call-back mechanisms, are registered here.
缺点是编写SAX解析器回调是件非常麻烦的事。
The disadvantage is that writing SAX parser callbacks is a big nuisance.
然后,设置回调句柄。
SAX程序员实现一个SAX接口来定义这些回调。
The SAX programmer implements one of the SAX interfaces that defines these callbacks.
因此,支持这些回调也需要入口点层组件中的代码。
It evolves that support for these call-backs requires code in the entry point layer components as well.
清单7.display . c与控件回调。
这些回调称为事件句柄。
回调服务提供从服务提供者回到其客户机的异步通信。
Callback service provides asynchronous communication from a service provider back to its client.
生命周期方法也称为回调方法,因为它将由容器调用。
The lifecycle methods are also called callback methods as it will be called by the container.
当调用由其他应用程序定义的回调函数时会发生什么?
What happens when you invoke callback functions defined by other applications?
在解析过程中,通过回调事件通知客户事件处理程序。
Client event handlers are informed through callbacks about the events during this parsing process.
EMRegister函数用于注册回调例程。
The EMRegister function is used to register the callback routine. It is best explained with an example.
代码中包含服务成功响应异步请求时调用的回调函数。
This code includes a callback function when your service responds successfully to your asynchronous request.
这意味着,故障转移发生时,不能取消未完成的回调。
This means that when a failover occurs, it's not possible to cancel outstanding callbacks.
解决方法就是对搜索框使用事件回调,如清单5所示。
The solution is to use the event callbacks on the search box, as shown in Listing 5.
不过要知道,一段文本内容可能会多次触发这个回调。
However, beware: This callback may be triggered multiple times for a single piece of textual content.
如果回调之间存在复杂的交互,请查找并消除冗余代码。
If there is a complex interaction between callbacks, look for redundant codes and simplify them.
通过添加带有空回调的特定抽象类同样可以完成该操作。
The same could have been accomplished by adding a special abstract class with empty callbacks.
这里有两种机制:回调方法和回调侦听器类。
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.
应用推荐