public interface NamingListener extends EventListener
该接口包含一个单一的方法,namingExceptionThrown(),必须实施,让听者能被通知,被抛出的异常(由服务提供商)而收集他们感兴趣的事件的信息。调用此方法时,听者已自动注销的EventContext具有注册。
例如,假设一个监听器实现与EventContext ObjectChangeListener和寄存器。然后,如果连接到服务器是随后打破,听者会收到NamingExceptionEvent可以采取纠正措施,如通知用户的应用程序。
NamingEvent
,
NamingExceptionEvent
,
EventContext
,
EventDirContext
Modifier and Type | Method and Description |
---|---|
void |
namingExceptionThrown(NamingExceptionEvent evt)
“当一个命名抛出异常而试图火
NamingEvent。
|
void namingExceptionThrown(NamingExceptionEvent evt)
evt
-非空事件。
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.