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, toStringpublic UnsolicitedNotificationEvent(Object src, UnsolicitedNotification notice)
src -非零源触发事件。
notice -非空的未经请求的通知。
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.