除了构建事件,还可以引入应用程序事件。
In addition to build events, you can tap into application events.
图5举例说明了适配器和应用程序事件表之间的交互。
Figure 5 illustrates the interaction between an adapter and an application event table.
或许您希望使用托管代码来响应Office应用程序事件。
Perhaps you want to use managed code to respond to Office application events.
然而,不允许应用程序直接将数据添加到事件中。
However, it does not allow the applications to directly add data to the events.
通过控制解析过程,应用程序可以决定对每个事件做什么。
By controlling the parsing process, the application can decide what to do with each event.
当应用程序启动后,您可以使用这些控件来记录事件。
When the application is active, you can use the controls to record events.
但应用程序却必须了解策略的变化并且相应地处理事件。
However, the application would have to know of this policy change and handle events accordingly.
记录的事件作为应用程序本身的一部分发生。
The event being recorded takes place as part of the application itself.
用同样的方式,你可以从主应用程序逻辑隐藏其他事件类。
You can hide other event classes from the main application logic in the same way.
在样本应用程序中,业务方法展示了达到的事件的内容。
In the sample application, the business methods display the contents of the arrived event.
想象一个提供事件信息的应用程序。
在某个特定的时间,某些事件可能会阻止您部署特定的应用程序。
Perhaps certain events will block you from deploying a particular application at a particular time.
许多应用程序注册这些事件以便用它们自己的方式报错。
Many applications register for these events to report errors in their own way.
最后,在所有情况中应用程序都观察该事件。
但它仍然存在,因此应用程序应该对任何相关事件正确响应。
But it remains. As a result, the application should react correctly to any related event.
它还支持应用程序之间的数据传输和事件通知。
It also enables data transfer and event notification between applications.
“失败事件管理器”应用程序如图8 所示。
我们将看到,如何轻松地向应用程序添加事件发出功能。
We'll see how easy it is to add event emitting capabilities to the application.
如图5所示,这些事件共同向应用程序描述了文档树。
As Figure 5 illustrates, taken together, the events describe the document tree to the application.
若要使用实际的数据库驱动的事件来测试整个应用程序,请再次打开DB 2命令中心。
To test the entire application with real database-driven events, open the DB2 command center again.
考虑:不同的技术对应用程序启动事件传输是否支持?
Consideration: Does the technology support the application initiating event delivery?
据说GUI应用程序是事件驱动的。
大多数应用程序都注册这些事件。
只有少数几个应用程序注册这些事件。
应用程序逻辑(在BestDeal中)与事件处理器保持分离。
The application logic (in BestDeal) is kept separate from the event handler.
然后,由运行在应用程序服务器上的会话Bean来显示该事件。
The event is then displayed by the session bean running on the application server.
在该示例应用程序中,我们将定义Buy和Sell事件。
In the sample application, we'll define Buy and Sell events.
这就是Web应用程序生命周期事件开始起作用的地方。
This is where a Web application life cycle event comes into play.
一旦事件确实发生了,那么应用程序将存储实际事件时间。
Once the event actually occurs, then the application will store the actual event time.
一旦事件确实发生了,那么应用程序将存储实际事件时间。
Once the event actually occurs, then the application will store the actual event time.
应用推荐