gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-14 08:14:49 28 4
gpt4 key购买 nike

本文整理了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);

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com