当前位置: 首页>>代码示例>>Java>>正文


Java Deactivate类代码示例

本文整理汇总了Java中aQute.bnd.annotation.component.Deactivate的典型用法代码示例。如果您正苦于以下问题:Java Deactivate类的具体用法?Java Deactivate怎么用?Java Deactivate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Deactivate类属于aQute.bnd.annotation.component包,在下文中一共展示了Deactivate类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
protected void deactivate() {
	logger.debug("deactivate()");
	if (this.localDir != null) {
		this.serviceSettings.removeSyncRoot(this.localDir);
	}

	this.filterRoots = null;
	this.localDir = null;
	this.overwriteConfigFiles = null;
	this.syncOnceType = null;
	this.willSyncOnce = null;
}
 
开发者ID:daniel-lima,项目名称:aem-vltsync,代码行数:14,代码来源:InitialRegistrationImpl.java

示例2: stop

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public void stop(BundleContext context) throws Exception {
    // Unregister all Services
    Set<String> dbNames = dbSrv.keySet();

    for (String name : dbNames) {
        dbSrv.get(name).unregister();

        dbMap.get(name).shutdown();
    }
}
 
开发者ID:kscarr73,项目名称:OsgiDb,代码行数:12,代码来源:DbActivator.java

示例3: doDeactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public void doDeactivate(ComponentContext ctx) {
	log.info("Stop");
	configUpdaterReg.unregister();
	context.removeBundleListener(this);
	context.removeServiceListener(this);
	
}
 
开发者ID:mhus,项目名称:mhus-osgi-tools,代码行数:9,代码来源:BundleWatchImpl.java

示例4: doDeactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public void doDeactivate(ComponentContext ctx) {
	if (tracker != null) {
		tracker.stop();
		tracker = null;
	}
}
 
开发者ID:mhus,项目名称:mhus-osgi-tools,代码行数:8,代码来源:MoManagerAdminImpl.java

示例5: doDeactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public void doDeactivate(ComponentContext ctx) {
	tracker.close();
	synchronized (list) {
		for (WebServiceInfoImpl info: list)
			info.disconnect();
		list.clear();
	}
}
 
开发者ID:mhus,项目名称:mhus-osgi-tools,代码行数:10,代码来源:JavaWebServiceAdminImpl.java

示例6: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public void deactivate() {
    if (server != null) {
        server.stop();
        server.destroy();
    }
}
 
开发者ID:bpedman,项目名称:osgi-sample,代码行数:8,代码来源:EntityServiceRest.java

示例7: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public void deactivate() {
    if (server != null) {
        server.stop();
        server.destroy();
        server = null;
    }
}
 
开发者ID:bpedman,项目名称:osgi-sample,代码行数:9,代码来源:NodeServiceRest.java

示例8: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public void deactivate() throws Exception {
	if (javaUtilLogging != null) {
		java.util.logging.Logger.getLogger("").removeHandler(javaUtilLogging);
	}
	//
	// Stop our thread
	//
	interrupt();
}
 
开发者ID:osgi,项目名称:bundles,代码行数:11,代码来源:LoggerAdminImpl.java

示例9: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
void deactivate() {
	List<Runnable> running = es.shutdownNow();

	if (!running.isEmpty())
		log.shutdownWhileTasksRunning(running);
}
 
开发者ID:osgi,项目名称:bundles,代码行数:8,代码来源:ExecutorImpl.java

示例10: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public synchronized void deactivate(BundleContext context) {
	context.removeServiceListener(this);

	for (Configuration managedConfiguration : this.managedConfigs.values()) {
		this.deleteConfiguration(managedConfiguration);
	}

	this.managedConfigs.clear();

	this.deleteSingletonConfiguration();
}
 
开发者ID:frensjan,项目名称:osgi-autoconf,代码行数:13,代码来源:AutoConfigurator.java

示例11: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
void deactivate() {
	httpTracker.close();
}
 
开发者ID:maldiny,项目名称:OSGI-en-Castellano,代码行数:5,代码来源:CustomHttpServlet.java

示例12: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
void deactivate() {
}
 
开发者ID:maldiny,项目名称:OSGI-en-Castellano,代码行数:4,代码来源:LogServiceWritter.java

示例13: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
void deactivate() {
	// TODO Auto-generated method stub
}
 
开发者ID:maldiny,项目名称:OSGI-en-Castellano,代码行数:5,代码来源:LogServiceReader.java

示例14: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
public final void deactivate() {
    modelMapper = null;
}
 
开发者ID:antoniomaria,项目名称:karaf4-eclipselink-jpa,代码行数:5,代码来源:ModelMapperContextImpl.java

示例15: deactivate

import aQute.bnd.annotation.component.Deactivate; //导入依赖的package包/类
@Deactivate
void deactivate(BundleContext bundleContext) throws Exception {
    serviceTracker.close();
}
 
开发者ID:Talend,项目名称:components,代码行数:5,代码来源:DefinitionRegistryOsgi.java


注:本文中的aQute.bnd.annotation.component.Deactivate类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。