org.apache.felix.ipojo.Factory.getDescription()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(131)

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

Factory.getDescription介绍

[英]Gets the component type information containing provided service, configuration properties ...
[中]获取包含提供的服务、配置属性。。。

代码示例

代码示例来源:origin: org.apache.felix/org.apache.felix.ipojo.composite

/**
 * Get the component type information containing provided service, configuration properties ...
 * @return the component type information.
 * @see org.apache.felix.ipojo.Factory#getDescription()
 */
public Element getDescription() {
  return m_delegate.getDescription();
}

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

/**
 * Get the component type information containing provided service, configuration properties ...
 * @return the component type information.
 * @see org.apache.felix.ipojo.Factory#getDescription()
 */
public Element getDescription() {
  return m_delegate.getDescription();
}

代码示例来源:origin: org.wisdom-framework/wisdom-monitor

/**
 * @return the factory raw architecture.
 */
public String getArchitecture() {
  return factory.getDescription().toString();
}

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

/**
 * Prints factory description.
 * @param name : factory name
 * @param out : default print stream
 * @param err : error print stream (if the factory is not found)
 */
private void printFactory(String name, PrintStream out, PrintStream err) {
  boolean found = false;
  for (int i = 0; i < m_factories.length; i++) {
    if (m_factories[i].getName().equalsIgnoreCase(name)) {
      // Skip a line if already found
      if (found) {
        out.println();
      }
      out.println(m_factories[i].getDescription());
      found = true;
    }
  }
  if (! found) {
    err.println("Factory " + name + " not found");
  }
}

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

pw.value(factory.getDescription().toString());
pw.endObject();
pw.endObject();

相关文章