将事件过滤器绑定到事件处理程序。
事件过滤器将描述要交付的事件类型及交付条件。
Event filters describe the types of events to be delivered and the conditions under which they are delivered.
清单1给出了一个忽略所有XML处理指令的事件过滤器。
Listing 1 shows an event filter that skips all XML processing instructions.
在创建该类的表示时,将交付事件过滤器所指定的事件表示。
When you create an indication of this class, indications for the events specified by the event filter are delivered.
清单1显示了用SBLIMCIM客户机库创建事件过滤器的示例。
Listing 1 shows an example of creating an event filter with SBLIM CIM client library.
幸运的是,StAX允许您通过实现事件过滤器忽略某些事件类。
Fortunately, StAX allows you to skip certain event classes by implementing an event filter.
清单4显示了如何用SBLIMCIM客户机库绑定事件处理程序与事件过滤器。
Listing 4 shows how to bind an event handler to an event filter with the SBLIM CIM client library.
因此,绑定事件过滤器与事件处理程序意味着设置在特定事件发生时采取特定操作的情形。
So, binding an event filter to an event handler means you're setting up a situation in which specific actions will be taken when a particular event happens.
要创建事件过滤器,需要创建cim_indicationfilter类的实例并定义其属性值。
To create an event filter, create an instance of the CIM_IndicationFilter class and define values for its properties.
我们把委托默认的事件过滤器安装在编辑器上,以确保它提供用户所期望的标准编辑快捷键。
We install the delegate's default event filter on the editor to ensure that it provides the standard editing shortcuts that users expect.
在这个场景中,对于非持续性事件过滤器a的吞吐量比过滤器b高30%,对于持续性事件则比过滤器b高16%。
In this scenario, for non-durable events Filter a achieved 30% better throughput than Filter b, and for durable events Filter a was 16% better.
在绑定事件过滤器与事件处理程序时,您是在创建cim_indicationsubscription类的实例并设置该实例的Filter和handler属性。
When you bind an event filter to an event handler, you are creating an instance of the CIM_IndicationSubscription class and setting the properties filter and handler of that instance.
词法处理程序并不做很多事情:它只将事件转发给管道中的下一个过滤器,但XSLT处理器需要它们。
The lexical handler doesn't do much: It simply forwards the events to the next filter in the pipe, but the XSLT processor requires them.
这些事件本身为指定何时生成每种转储提供了很大的灵活性,但是如果结合使用转储过滤器的话,灵活性还会大大提高。
These events in themselves provide good flexibility as to when to generate each of the dumps, but that flexibility is also greatly increased by the addition of dump filters.
可以在每种事件上添加一个过滤器,从而以更细的粒度控制何时创建转储。
You can add a filter to each of the events to provide more granularity as to when the dump is created.
JMX还支持使用带过滤器和广播器的事件模型的通知。
JMX also supports notification using an event model with filters and broadcasters.
通道还能被配置成过滤器,它定义了通道希望接收的事件集合。
A channel may be configured with filters, which define the set of events that the channel accepts.
分析业务事件交互集,确保恰当地使用上下文id和过滤器排序。
Analyse your business events interaction sets to ensure appropriate use of context IDs and ordering of filters.
当发射器接收到CBE 时,它将使用过滤器决定是否把该事件发送到CEI服务器。
When the emitter receives a CBE, it will use this filter to determine if the event should be sent to the CEI server.
表2列出了最有用的事件和过滤器。
在记录由BusinessEvents运行时处理的事件、动作、过滤器和其他资产的历史表中跟踪历史。
History is tracked in history tables that record events, actions, filters and other assets that are processed by the Business events runtime.
XMLFilterImpl已经实现了ContentHandler的绝大部分,它盲目地将事件转发给管道中的下一个过滤器。
XMLFilterImpl already implements most of the ContentHandler, blindly forwarding events to the next filter in the pipe.
即使未选择在历史记录中记录任何字段,BusinessEvents仍然记录关于事件、过滤器和动作的数据,因此对性能的影响极大。
Even with no fields selected to record in history, Business events still records data about events, filters and actions, hence the large impact.
Controller ——生命周期事件和servlet过滤器
在对这两个过滤器的比较中,ActionableEvent在运行1000个事件之后返回1个true。
A comparison between these two filters where Actionable event returned true for 1 in every 1000 events was run.
简单地说,过滤器是将接收到的事件传送给另一个事件处理程序的SAX事件处理程序。
Simply put, a filter is a SAX event handler that passes the events it receives to another event handler.
倘若事件不符合过滤器定义的条件,该事件就会被丢弃。
If an event does not match the filters defined, the event is discarded.
选择一个港口自动过滤器的事件表明,只有那些有针对性的在那个港口。
Selecting a port automatically filters the events to show only those targeted at that port.
如果在验证器处理程序上设置自己的or g . xml .sax .ContentHandler,该验证器处理程序将充当过滤器,验证收到的sax事件,并把事件转发到ContentHandler。
If you set your own org.xml.sax.ContentHandler on the validator handler, the validator handler ACTS as a filter that validates incoming sax events and forwards events to your ContentHandler.
如果在验证器处理程序上设置自己的or g . xml .sax .ContentHandler,该验证器处理程序将充当过滤器,验证收到的sax事件,并把事件转发到ContentHandler。
If you set your own org.xml.sax.ContentHandler on the validator handler, the validator handler ACTS as a filter that validates incoming sax events and forwards events to your ContentHandler.
应用推荐