org.osgi.service.component.annotations.Reference.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.8k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.osgi.service.component.annotations.Reference.<init>方法的一些代码示例,展示了Reference.<init>的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.<init>方法的具体详情如下:
包路径:org.osgi.service.component.annotations.Reference
类名称:Reference
方法名:<init>

Reference.<init>介绍

暂无

代码示例

代码示例来源:origin: eclipse/smarthome

@Reference
void setScheduler(Scheduler scheduler) {
  this.scheduler = scheduler;
}

代码示例来源:origin: eclipse/smarthome

@Reference
public void setUnitProvider(UnitProvider unitProvider) {
  this.unitProvider = unitProvider;
}

代码示例来源:origin: eclipse/smarthome

@Reference
void setDelegate(SchedulerImpl delegate) {
  this.delegate = delegate;
}

代码示例来源:origin: eclipse/smarthome

@Reference
protected void setSafeCaller(SafeCaller safeCaller) {
  this.safeCaller = safeCaller;
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC)
protected void addBindingInfoProvider(BindingInfoProvider bindingInfoProvider) {
  if (bindingInfoProvider != null) {
    this.bindingInfoProviders.add(bindingInfoProvider);
  }
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC)
protected void addItemFactory(ItemFactory itemFactory) {
  itemFactories.add(itemFactory);
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC)
public void addStateDescriptionFragmentProvider(StateDescriptionFragmentProvider provider) {
  stateDescriptionFragmentProviders.add(provider);
}

代码示例来源:origin: eclipse/smarthome

@Reference(target = "(component.name=org.eclipse.smarthome.core.library.CoreItemFactory)")
protected void setCoreItemFactory(ItemFactory coreItemFactory) {
  itemFactories.add(coreItemFactory);
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC)
public void addAuthenticationProvider(AuthenticationProvider provider) {
  providers.add(provider);
}

代码示例来源:origin: eclipse/smarthome

@Deprecated
@Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC)
public void addStateDescriptionProvider(StateDescriptionProvider provider) {
  stateDescriptionProviders.add(provider);
}

代码示例来源:origin: eclipse/smarthome

@Override
@Reference
protected void setStorageService(StorageService storageService) {
  super.setStorageService(storageService);
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
@Override
protected void setEventPublisher(EventPublisher eventPublisher) {
  super.setEventPublisher(eventPublisher);
}

代码示例来源:origin: eclipse/smarthome

@Override
@Reference
protected void setStorageService(StorageService storageService) {
  super.setStorageService(storageService);
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.MULTIPLE, policy = ReferencePolicy.DYNAMIC)
protected void addEventFactory(EventFactory eventFactory) {
  Set<String> supportedEventTypes = eventFactory.getSupportedEventTypes();
  for (String supportedEventType : supportedEventTypes) {
    synchronized (this) {
      if (!typedEventFactories.containsKey(supportedEventType)) {
        typedEventFactories.put(supportedEventType, eventFactory);
      }
    }
  }
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
protected void setManagedProvider(ManagedMetadataProvider provider) {
  super.setManagedProvider(provider);
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
protected void setManagedProvider(ManagedItemProvider provider) {
  super.setManagedProvider(provider);
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
protected void setItemStateConverter(ItemStateConverter itemStateConverter) {
  this.itemStateConverter = itemStateConverter;
  for (Item item : getItems()) {
    ((GenericItem) item).setItemStateConverter(itemStateConverter);
  }
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
protected void setStateDescriptionService(StateDescriptionService stateDescriptionService) {
  this.stateDescriptionService = stateDescriptionService;
  for (Item item : getItems()) {
    ((GenericItem) item).setStateDescriptionService(stateDescriptionService);
  }
}

代码示例来源:origin: eclipse/smarthome

@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
protected void setUnitProvider(UnitProvider unitProvider) {
  this.unitProvider = unitProvider;
  for (Item item : getItems()) {
    ((GenericItem) item).setUnitProvider(unitProvider);
  }
}

代码示例来源:origin: eclipse/smarthome

@Override
@Reference(cardinality = ReferenceCardinality.OPTIONAL, policy = ReferencePolicy.DYNAMIC)
protected void setEventPublisher(EventPublisher eventPublisher) {
  super.setEventPublisher(eventPublisher);
  for (Item item : getItems()) {
    ((GenericItem) item).setEventPublisher(eventPublisher);
  }
}

相关文章