您应该把这个类当作事件侦听器。
控制台还注册属性更改侦听器。
侦听器泄漏往往会浪费内存和时间。
第2部分对侦听器类进行了修改。
将消息侦听器端口迁移到激活规范。
Migrating message listener ports to activation specifications.
激活规范与消息侦听器端口的比较。
首先,必须启动侦听器进程。
侦听器端口的最大会话属性。
消息侦听器服务中的线程池。
选择端点侦听器,然后单击Next。
为通道侦听器指定端口1415。
添加一个JMS侦听器端口。
下一节将演示如何使用这些侦听器方法。
The next section demonstrates how to use these listener methods.
消息侦听器端口必须在服务器范围配置。
Message listener ports have to be configured at server scope.
定义一个事件侦听器并将其注册至视图。
对于我们的示例,要创建一个新侦听器。
此连接只有在侦听器端口停止后才释放。
This connection will only be released after the listener port has been stopped.
步骤3:命名入站服务并选择端点侦听器。
Step 3: Name the inbound service and select endpoint listeners.
行17执行侦听器注册。
浇头按钮的侦听器只是稍微复杂一点。
The listener for the topping buttons is only a bit more complicated.
假设您使用Vector保存侦听器列表。
侦听器是View的内部类。
还将为每个选定的端点侦听器创建入站端口。
An inbound port will be created for each endpoint listener selected.
此连接将存在于侦听器端口的整个生命周期。
This connection will exist for the entire life of the listener port.
只有过滤器允许的通知才可被传递到侦听器。
Only notifications which the filter allows are passed to the listener.
添加操作所得的侦听器端口条目如图6所示。
The resulting Add Listener Port entries are shown in Figure 6.
通常,您会看到侦听器被定义为内嵌匿名类。
Often, you'd see the listener defined as an inline anonymous class.
消息侦听器线程池。
这些方法又会在调用它们的线程中调用侦听器。
These methods will in turn call the listeners in whatever thread they were called.
关键是理解从中添加侦听器的对象的生命周期。
Understanding the life cycle of the object that you're adding listeners to is key.
应用推荐