下面列出了怎么用javax.naming.event.NamingExceptionEvent的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Invoked if JNDI lost connection to the server while preparing the {@code NamingEvent}.
* Clears the data source anyway. In the worst case scenario, the application will fetch
* it again from a the JNDI context.
*/
@Override
public void namingExceptionThrown(NamingExceptionEvent event) {
Logging.unexpectedException(Logging.getLogger(Loggers.SYSTEM),
Listener.class, "namingExceptionThrown", event.getException());
objectChanged(null);
}
@Override
public void namingExceptionThrown(NamingExceptionEvent nee) {
//do nothing
}
@Override
public void namingExceptionThrown(NamingExceptionEvent nee) {
//do nothing
}
@Override
public void namingExceptionThrown(NamingExceptionEvent nee) {
//do nothing
}
public void namingExceptionThrown(NamingExceptionEvent evt) {
cnt++;
}
@Override
public void namingExceptionThrown(NamingExceptionEvent evt) {
//noinspection ThrowableResultOfMethodCallIgnored
LOG.namingExceptionAccessingFactory( evt.getException() );
}
@Override
public void namingExceptionThrown(NamingExceptionEvent nee) {
//do nothing
}
public void namingExceptionThrown(NamingExceptionEvent evt) {
log.warn( "Naming exception occurred accessing factory: " + evt.getException() );
}
@Override
public void namingExceptionThrown(NamingExceptionEvent evt) {
LegacyLDAPSecuritySettingPlugin.this.namingExceptionThrown(evt);
}
/**
* Handler for exception events from the registry.
*
* @param namingExceptionEvent the exception event
*/
public void namingExceptionThrown(NamingExceptionEvent namingExceptionEvent) {
context = null;
ActiveMQServerLogger.LOGGER.caughtUnexpectedException(namingExceptionEvent.getException());
}