org.apache.stanbol.entityhub.servicesapi.yard.Yard.getId()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(110)

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

Yard.getId介绍

[英]Getter for the unique ID of the Yard
[中]Getter为院子提供独一无二的ID

代码示例

代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

@Override
public String getId() {
  return yard.getId();
}

代码示例来源:origin: apache/stanbol

@Override
public String getId() {
  return yard.getId();
}

代码示例来源:origin: apache/stanbol

@Override
public String getDescription() {
  return String.format("Cache Wrapper for Yard %s ", yard.getId());
}

代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

@Override
public String getDescription() {
  return String.format("Cache Wrapper for Yard %s ", yard.getId());
}

代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

protected void unbindYard(Yard yard){
  if(yard != null && yards.containsKey(yard.getId())){
    Map<String, Yard> tmp = new HashMap<String, Yard>(yards);
    tmp.remove(yard.getId());
    this.yards = Collections.unmodifiableMap(tmp);
  }
}
protected void bindCache(Cache cache){

代码示例来源:origin: apache/stanbol

protected void unbindYard(Yard yard){
  if(yard != null && yards.containsKey(yard.getId())){
    Map<String, Yard> tmp = new HashMap<String, Yard>(yards);
    tmp.remove(yard.getId());
    this.yards = Collections.unmodifiableMap(tmp);
  }
}
protected void bindCache(Cache cache){

代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

protected void bindYard(Yard yard){
  if(yard != null){
    Map<String, Yard> tmp = new HashMap<String, Yard>(yards);
    tmp.put(yard.getId(),yard);
    this.yards = Collections.unmodifiableMap(tmp);
  }
}
protected void unbindYard(Yard yard){

代码示例来源:origin: apache/stanbol

protected void bindYard(Yard yard){
  if(yard != null){
    Map<String, Yard> tmp = new HashMap<String, Yard>(yards);
    tmp.put(yard.getId(),yard);
    this.yards = Collections.unmodifiableMap(tmp);
  }
}
protected void unbindYard(Yard yard){

代码示例来源:origin: apache/stanbol

private synchronized void updateServiceRegistration(ComponentContext cc, Yard yard, String[] additionalMappings, NamespacePrefixService nsPrefixService) {
  if(cacheRegistration != null){
    cacheRegistration.unregister();
    cacheRegistration = null;
    cache = null;
  }
  if(cc != null && yard != null){
    try {
      cache = new CacheImpl(yard,additionalMappings, nsPrefixService);
    } catch (YardException e) {
      log.warn("Unable to init Cache for Yard '"+yard.getId()+"'!",e);
    }
    cacheRegistration = cc.getBundleContext().registerService(Cache.class.getName(), cache, 
      OsgiUtils.copyConfig(cc.getProperties()));
  }
  
}

代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

private synchronized void updateServiceRegistration(ComponentContext cc, Yard yard, String[] additionalMappings, NamespacePrefixService nsPrefixService) {
  if(cacheRegistration != null){
    cacheRegistration.unregister();
    cacheRegistration = null;
    cache = null;
  }
  if(cc != null && yard != null){
    try {
      cache = new CacheImpl(yard,additionalMappings, nsPrefixService);
    } catch (YardException e) {
      log.warn("Unable to init Cache for Yard '"+yard.getId()+"'!",e);
    }
    cacheRegistration = cc.getBundleContext().registerService(Cache.class.getName(), cache, 
      OsgiUtils.copyConfig(cc.getProperties()));
  }
  
}

代码示例来源:origin: apache/stanbol

@Test
public void testYardId() {
  assertNotNull("The ID of the Yard MUST NOT be NULL", getYard().getId());
}

代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.indexing.core

String.format(errorMsg,entry.getItem().getId(),yard.getId()),
yardException);

代码示例来源:origin: apache/stanbol

String.format(errorMsg,entry.getItem().getId(),yard.getId()),
yardException);

代码示例来源:origin: org.apache.stanbol/org.apache.stanbol.entityhub.core

log.info("Replace Additional Mappings for Cache {} with Mappings configured by OSGI",yard.getId());
setAdditionalMappings(yard, configuredMappings);

代码示例来源:origin: apache/stanbol

log.info("Replace Additional Mappings for Cache {} with Mappings configured by OSGI",yard.getId());
setAdditionalMappings(yard, configuredMappings);

相关文章