UMDF使用引用计数方案来管理回调对象和框架对象的寿命。
UMDF uses a reference-counting scheme to manage the lifetime of callback objects and framework objects.
每个方法都提供了一个回调对象,这样就可以在完成远程过程调用后收到异步通知。
Each method provides a callback object so that you are notified asynchronously when the remote procedure call is complete.
为了使用此方法,您必须传递一个回调对象,将在调用完成后立即调用回调对象。
In order to use this method you have to pass a callback object and once the invocation is completed, the callback object will be called.
驱动程序通过传递一个接口指针给分发相关事件的框架对象,来注册回调对象。
Drivers register callback objects by passing a pointer to one of the object's interfaces to the framework object that raises the related event.
当RqGuiApp操作完成时(例如,工程打开,文档已经创建等),回调对象将收到通知。
When the RqGuiApp operation is complete (I.e. the project is opened, the document has been created), the callback object is notified.
当您希望指定一个回调对象(例如一个比较器)或存放某个值的数据结构,可以使用下限通配符。
Lower-bounded wildcards show up when you want to specify a callback object, such as a comparator, or a data structure into which you are going to place a value.
存在一个客户机提供的回调对象,SOAP引擎会在从服务器接收到响应后通知该对象。
There's a callback object the client provides that's notified by the SOAP engine after the engine receives the response from the server.
新解析器在一个ILocationResolver中存储额外的解析信息(问题、节点位置),而不是存储在回调对象中。
The new parsers store additional parsing information (problems, node locations) in an ILocationResolver instead of a callback object.
如果需要的话,您还可以传递一个可选的数据对象和回调函数。
You can pass an optional data object and callback function if you need them.
被访问的对象、被访问的属性名、访问的类型(例如读、写和删除)将被传递给回调函数,回调函数会返回是否允许访问。
This callback is given the object being accessed, the name of the property being accessed, the type of access (read, write, or delete for example) and returns whether or not to allow access.
使用信号/插槽以灵活且可维护的方式控制对象间通信要比使用脆弱的回调风格容易得多。
With signals/slots, it is much easier to control communications between objects in a flexible and maintainable manner than it is with a fragile callback style.
相反,我们将这个大对象分解为可管理的几部分,这样扩展就更容易了,同时对核心服务器端行为的回调也更容易。
Instead we have split out this monolithic object into manageable pieces that now make it much easier to extend and hook into core server behavior.
这个接口为许多Hibernate事件提供回调方法,包括创建、修改和删除对象。
This interface provides callback methods for many different Hibernate events, including object creation, modification, and deletion.
使用XMLHttpRequest对象对服务器进行调用,采用的方法是定义一个回调函数,当收到服务器响应时,会自动执行这个函数。
Use the XMLHttpRequest object to make a call to the server by defining a callback function that is executed automatically when the server response is received.
我经常看到的一种情况就是,用户没有在回调中检查对象的 readyState或status字段。
One that I often see is when users don't inspect the readyState or status fields of the object in the callback.
第二个servlet将作为我的回调;它将处理来自Twitter的响应并创建相应的User对象。
The second servlet will be my callback; it will process the response from Twitter and create a corresponding User object.
这个新代码只是查看请求对象是否发生改变,以响应onreadystatechange回调。
This new code just looks to see whether the request object has changed in response to this onreadystatechange callback.
类似地,如果需要访问发出信号的对象,就要使用第一个参数,在这个具体回调中是button。
Similarly, if you need to access the object that emitted the signal, you use the first parameter, which is button in this specific callback.
正如我在清单3中展示的一样,XMLHTTPRequest对象所提供的全部内容是一个名为onreadystatechange的回调机制。
As I show in Listing 3, all the XMLHTTPRequest object provides is a callback mechanism called onreadystatechange.
完成XHR对象的初始化后,rpc. tag文件生成一个名为processresponse的Ajax回调。
After the initialization of the XHR object, the rpc.tag file generates an Ajax callback named processResponse .
我们可以使用这个deferred对象来定义一个在异步调用返回响应时执行的回调函数。
You can use this deferred object for defining a callback method when the asynchronous call returns a response.
在每一个定时器事件被调用时该state对象作为一个参数传递给你的定时回调函数。
This state object is passed to your timer callback function during each timer event invocation.
第一个servlet将创建Session对象,为Twitter注册回调url,以及将用户转向Twitter以便授权。
The first servlet will create a Session object, register a callback URL for Twitter, and shunt the user to Twitter for authentication.
记住定时回调功能是在一个工作者线程上执行的,所以你必须确保访问state对象的线程安全。
Keep in mind that the timer callback function is executed on a worker thread, so you'll want to ensure that you have thread-safe access to the state object.
如果提供了回调函数,那么XHR对象的send方法立即返回,并不等待服务器响应。
If a callback function was provided, the send method of the XHR object returns immediately without waiting for a server response.
该对象用于代表MessageSender初始化属性中指定的用户执行回调。
The subject is used to execute callback on behalf of the user specified in the MessageSender initialization properties.
然后,如果策略消费者需要策略提供者执行特定的策略,策略消费者作为被观察对象,回调提供者,以执行策略操作。
Later, when consumers of the strategy providers need the providers to perform the particular strategy, the consumers, as observables, call back to the providers to perform the strategy operation.
SAX编码很令人痛苦,回调不是很符合面向对象的思路,熟练掌握它又需要花很长的时间。
SAX is a pain to code in; callbacks aren't very OO, and it takes a long time to get good at it.
通知事件通过回调型显式接口以及与之对应的代理和调用程序对象,与观察器进行通信。
Notification events were communicated to observers with call-back explicit interfaces and their respective proxy and invoker objects.
实际上,延迟是对象被调度回调的泛化,但它们也允许使用诸如链接依赖回调和在这些链接中进行错误条件处理之类的技术。
In essence, deferreds are a generalization of scheduled callbacks, but allow techniques such as chaining dependent callbacks and handling error conditions in these chains.
应用推荐