类javax.naming.event.NamingExceptionEvent源码实例Demo

下面列出了怎么用javax.naming.event.NamingExceptionEvent的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: sis   文件: Initializer.java
/**
 * 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
}
 
源代码3 项目: TencentKona-8   文件: RemoveNamingListenerTest.java
@Override
public void namingExceptionThrown(NamingExceptionEvent nee) {
    //do nothing
}
 
源代码4 项目: openjdk-jdk8u   文件: RemoveNamingListenerTest.java
@Override
public void namingExceptionThrown(NamingExceptionEvent nee) {
    //do nothing
}
 
源代码5 项目: netbeans   文件: WeakListenerTest.java
public void namingExceptionThrown(NamingExceptionEvent evt) {
    cnt++;
}
 
源代码6 项目: lams   文件: SessionFactoryRegistry.java
@Override
public void namingExceptionThrown(NamingExceptionEvent evt) {
	//noinspection ThrowableResultOfMethodCallIgnored
	LOG.namingExceptionAccessingFactory( evt.getException() );
}
 
源代码7 项目: jdk8u_jdk   文件: RemoveNamingListenerTest.java
@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());
}
 
 类所在包
 类方法
 同包方法