Java 类javax.enterprise.context.Destroyed 实例源码

项目:lra-service    文件:LRAService.java   
/**
 * When the deployment is unloaded unregister for recovery
 *
 * @param init a javax.servlet.ServletContext
 */
void disableRecovery(@Observes @Destroyed(ApplicationScoped.class) Object init) {
    assert lraRecoveryModule != null;

    Implementations.uninstall();
    RecoveryManager.manager().removeModule(lraRecoveryModule, false);
    lraRecoveryModule = null;

    if (LRALogger.logger.isDebugEnabled())
        LRALogger.logger.debugf("LRAServicve.disableRecovery%n");    }
项目:Camel    文件:Application.java   
void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object event) {
    System.out.println(
          " _____ _       _     _                     \n"
        + "|   __| |_ _ _| |_ _| |___ _ _ _ ___       \n"
        + "|__   |   | | |  _| . | . | | | |   |_ _ _ \n"
        + "|_____|_|_|___|_| |___|___|_____|_|_|_|_|_|");
}
项目:hawkular-commons    文件:BusEndpointProcessors.java   
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object ignore) {
    log.debugf("Destroying [%s]", this.getClass().getName());
    if (feedSessionListenerProducer != null) {
        wsEndpoints.getFeedSessions().removeWsSessionListenerProducer(feedSessionListenerProducer);
    }
    if (uiClientSessionListenerProducer != null) {
        wsEndpoints.getUiClientSessions().removeWsSessionListenerProducer(uiClientSessionListenerProducer);
    }
}
项目:sinkit-core    文件:MyCacheManagerProvider.java   
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
    if (localCacheManager != null) {
        localCacheManager.stop();
    }
    if (cacheManager != null) {
        cacheManager.stop();
    }
    if (cacheManagerForIndexableCaches != null) {
        cacheManagerForIndexableCaches.stop();
    }
}
项目:camel-cdi    文件:Application.java   
void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object event) {
    System.out.println(
          " _____ _       _     _                     \n"
        + "|   __| |_ _ _| |_ _| |___ _ _ _ ___       \n"
        + "|__   |   | | |  _| . | . | | | |   |_ _ _ \n"
        + "|_____|_|_|___|_| |___|___|_____|_|_|_|_|_|");
}
项目:Mastering-Java-EE-Development-with-WildFly    文件:InitializeApplicationObserver.java   
public void processApplicationScopedDestroyed(
        @Observes @Destroyed(ApplicationScoped.class) ServletContext payload) {
    logger.info("destroyed the ApplicationBean");
    applicationBean.incrementCounter();
}
项目:Mastering-Java-EE-Development-with-WildFly    文件:InitializeDependentObserver.java   
public void processDependentScopedDestroyed(@Observes @Destroyed(ApplicationScoped.class) ServletContext payload) {
    logger.info("destroyed the DependentBean");
}
项目:wildfly-swarm    文件:MPJWTProducer.java   
void observeRequestDestroyed(@Observes @Destroyed(RequestScoped.class) Object event) {
    log.tracef("observeRequestDestroyed, event=%s", event);
}
项目:jc2    文件:Configurator.java   
public void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object doesntMatter) {
    this.cacheManager.destroyCache(CONFIGURATION);
    this.cachingProvider.close();
}
项目:hawkular-commons    文件:WsEndpoints.java   
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object ignore) {
    log.debugf("Destroying [%s]", this.getClass().getName());
    this.uiClientSessions.destroy();
    this.feedSessions.destroy();
}
项目:java-ee-rxjava-kafka-avro    文件:KafkaProducerProvider.java   
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
    producer.close();
}
项目:java-ee-rxjava-kafka-avro    文件:KafkaConsumerProvider.java   
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
    consumer.shutdown();
}
项目:java-ee-rxjava-kafka-avro    文件:ClientAddedEventSubscriber.java   
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
    subscription.unsubscribe();
}
项目:gameon-mediator    文件:KafkaCDIBridge.java   
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
    Log.log(Level.FINEST, this, "CDI Shutting down kafka polling thread");
    pollingThread.cancel(true);
    Log.log(Level.FINEST, this, "CDI Closing kafka consumer.");
    consumer.close();
}
项目:javaee-samples    文件:AbstractExtensionOnStartupTimer.java   
public void afterDestroyed(@Observes @Destroyed(ApplicationScoped.class) Object event) {
    future.cancel(false);
}
项目:javaee_projects    文件:CacheExposer.java   
public void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object doesntMatter) {
    this.cachingProvider.close();
}