本文整理了Java中org.osgi.service.cm.Configuration.getChangeCount()
方法的一些代码示例,展示了Configuration.getChangeCount()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Configuration.getChangeCount()
方法的具体详情如下:
包路径:org.osgi.service.cm.Configuration
类名称:Configuration
方法名:getChangeCount
[英]Get the change count. Each Configuration must maintain a change counter that is incremented with a positive value every time the configuration is updated and its properties are stored. The counter must be incremented before the targets are updated and events are sent out.
[中]找零钱。每次更新配置并存储其属性时,每个配置都必须维护一个以正值递增的更改计数器。在更新目标和发送事件之前,计数器必须递增。
代码示例来源:origin: apache/felix
} else {
if ( configList.getLastInstalled() == null
|| configList.getChangeCount() != configuration.getChangeCount() ) {
ignore = true;
} else {
configuration.updateIfDifferent(cfg.getProperties());
cfg.setState(ConfigState.INSTALLED);
configList.setChangeCount(configuration.getChangeCount());
configList.setLastInstalled(cfg);
代码示例来源:origin: apache/felix
if ( c != null ) {
if ( cfg.getPolicy() == ConfigPolicy.FORCE
|| configList.getChangeCount() == c.getChangeCount() ) {
c.delete();
代码示例来源:origin: org.apache.felix/org.apache.felix.scr
holder, config, config.getChangeCount() );
if ( checkBundleLocation( config, bundleContext.getBundle() ) )
long changeCount = config.getChangeCount();
ServiceReference<ManagedService> ref = getManagedServiceReference(bundleContext);
created |= holder.configurationUpdated( new TargetedPID( config.getPid() ),
holder, singleton, singleton.getChangeCount() );
if ( singleton != null && checkBundleLocation( singleton, bundleContext.getBundle() ) )
long changeCount = singleton.getChangeCount();
ServiceReference<ManagedService> ref = getManagedServiceReference(bundleContext);
holder.configurationUpdated( new TargetedPID( singleton.getPid() ), null,
代码示例来源:origin: apache/felix
holder, config, config.getChangeCount() );
if ( checkBundleLocation( config, bundleContext.getBundle() ) )
long changeCount = config.getChangeCount();
ServiceReference<ManagedService> ref = getManagedServiceReference(bundleContext);
created |= holder.configurationUpdated( new TargetedPID( config.getPid() ),
holder, singleton, singleton.getChangeCount() );
if ( singleton != null && checkBundleLocation( singleton, bundleContext.getBundle() ) )
long changeCount = singleton.getChangeCount();
ServiceReference<ManagedService> ref = getManagedServiceReference(bundleContext);
holder.configurationUpdated( new TargetedPID( singleton.getPid() ), null,
代码示例来源:origin: org.apache.felix/org.apache.felix.scr
ServiceReference<ManagedService> ref = getManagedServiceReference(bundleContext);
return new ConfigurationInfo( config.getProcessedProperties(ref), config.getBundleLocation(),
config.getChangeCount() );
代码示例来源:origin: apache/felix
ServiceReference<ManagedService> ref = getManagedServiceReference(bundleContext);
return new ConfigurationInfo( config.getProcessedProperties(ref), config.getBundleLocation(),
config.getChangeCount() );
内容来源于网络,如有侵权,请联系作者删除!