public class UnsolicitedNotificationEvent extends EventObject
UnsolicitedNotification
, UnsolicitedNotificationListener
, EventContext.addNamingListener(javax.naming.Name, int, javax.naming.event.NamingListener)
, EventDirContext.addNamingListener(javax.naming.Name, java.lang.String, javax.naming.directory.SearchControls, javax.naming.event.NamingListener)
, EventContext.removeNamingListener(javax.naming.event.NamingListener)
, Serialized Form
source
Constructor and Description |
---|
UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)
构造一个新的实例
UnsolicitedNotificationEvent 。
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(UnsolicitedNotificationListener listener)
使用此事件在侦听器上调用
notificationReceived()方法。
|
UnsolicitedNotification |
getNotification()
返回非请求通知。
|
getSource, toString
public UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)
src
- 触发事件的非空源。
notice
- 非null非请求通知。
public UnsolicitedNotification getNotification()
public void dispatch(UnsolicitedNotificationListener listener)
listener
- 在其上调用
notificationReceived的非空侦听器。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.