本文整理汇总了Java中javax.enterprise.context.Destroyed类的典型用法代码示例。如果您正苦于以下问题:Java Destroyed类的具体用法?Java Destroyed怎么用?Java Destroyed使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Destroyed类属于javax.enterprise.context包,在下文中一共展示了Destroyed类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: disableRecovery
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
/**
* 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"); }
开发者ID:xstefank,项目名称:lra-service,代码行数:15,代码来源:LRAService.java
示例2: shutdown
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object event) {
System.out.println(
" _____ _ _ _ \n"
+ "| __| |_ _ _| |_ _| |___ _ _ _ ___ \n"
+ "|__ | | | | _| . | . | | | | |_ _ _ \n"
+ "|_____|_|_|___|_| |___|___|_____|_|_|_|_|_|");
}
开发者ID:HydAu,项目名称:Camel,代码行数:8,代码来源:Application.java
示例3: destroy
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
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);
}
}
开发者ID:hawkular,项目名称:hawkular-commons,代码行数:10,代码来源:BusEndpointProcessors.java
示例4: destroy
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
if (localCacheManager != null) {
localCacheManager.stop();
}
if (cacheManager != null) {
cacheManager.stop();
}
if (cacheManagerForIndexableCaches != null) {
cacheManagerForIndexableCaches.stop();
}
}
开发者ID:whalebone,项目名称:sinkit-core,代码行数:12,代码来源:MyCacheManagerProvider.java
示例5: processApplicationScopedDestroyed
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void processApplicationScopedDestroyed(
@Observes @Destroyed(ApplicationScoped.class) ServletContext payload) {
logger.info("destroyed the ApplicationBean");
applicationBean.incrementCounter();
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:6,代码来源:InitializeApplicationObserver.java
示例6: processDependentScopedDestroyed
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void processDependentScopedDestroyed(@Observes @Destroyed(ApplicationScoped.class) ServletContext payload) {
logger.info("destroyed the DependentBean");
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:4,代码来源:InitializeDependentObserver.java
示例7: observeRequestDestroyed
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
void observeRequestDestroyed(@Observes @Destroyed(RequestScoped.class) Object event) {
log.tracef("observeRequestDestroyed, event=%s", event);
}
开发者ID:wildfly-swarm,项目名称:wildfly-swarm,代码行数:4,代码来源:MPJWTProducer.java
示例8: shutdown
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object doesntMatter) {
this.cacheManager.destroyCache(CONFIGURATION);
this.cachingProvider.close();
}
开发者ID:AdamBien,项目名称:jc2,代码行数:5,代码来源:Configurator.java
示例9: destroy
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object ignore) {
log.debugf("Destroying [%s]", this.getClass().getName());
this.uiClientSessions.destroy();
this.feedSessions.destroy();
}
开发者ID:hawkular,项目名称:hawkular-commons,代码行数:6,代码来源:WsEndpoints.java
示例10: destroy
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
producer.close();
}
开发者ID:jeqo,项目名称:java-ee-rxjava-kafka-avro,代码行数:4,代码来源:KafkaProducerProvider.java
示例11: destroy
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
consumer.shutdown();
}
开发者ID:jeqo,项目名称:java-ee-rxjava-kafka-avro,代码行数:4,代码来源:KafkaConsumerProvider.java
示例12: destroy
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void destroy(@Observes @Destroyed(ApplicationScoped.class) Object init) {
subscription.unsubscribe();
}
开发者ID:jeqo,项目名称:java-ee-rxjava-kafka-avro,代码行数:4,代码来源:ClientAddedEventSubscriber.java
示例13: destroy
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
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();
}
开发者ID:gameontext,项目名称:gameon-mediator,代码行数:7,代码来源:KafkaCDIBridge.java
示例14: afterDestroyed
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void afterDestroyed(@Observes @Destroyed(ApplicationScoped.class) Object event) {
future.cancel(false);
}
开发者ID:Tibor17,项目名称:javaee-samples,代码行数:4,代码来源:AbstractExtensionOnStartupTimer.java
示例15: shutdown
import javax.enterprise.context.Destroyed; //导入依赖的package包/类
public void shutdown(@Observes @Destroyed(ApplicationScoped.class) Object doesntMatter) {
this.cachingProvider.close();
}
开发者ID:wesleyegberto,项目名称:javaee_projects,代码行数:4,代码来源:CacheExposer.java
注:本文中的javax.enterprise.context.Destroyed类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论