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

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

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

Factory.getComponentDescription介绍

[英]Gets the component type description.
[中]获取组件类型描述。

代码示例

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

public ComponentTypeDescription getComponentDescription() {
  return m_delegate.getComponentDescription();
}

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

public ComponentTypeDescription getComponentDescription() {
  return m_delegate.getComponentDescription();
}

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

System.out.println(factory.getComponentDescription());

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

/**
 * A new valid factory appears.
 * @param factory : factory.
 */
public void bindFactory(Factory factory) {
  boolean implicated = false;
  String factName = factory.getName();
  String className = factory.getComponentDescription().getClassName();
  for (int i = 0; i < m_configurations.length; i++) {
    if (m_configurations[i].getInstance() == null
        && (m_configurations[i].getNeededFactoryName().equals(factName)
            || m_configurations[i].getNeededFactoryName().equals(className))) {
      createInstance(factory, m_configurations[i]);
      implicated = true;
    }
  }
  if (implicated && ! getValidity()) {
    checkValidity();
  }
}

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

/**
 * A new valid factory appears.
 * @param factory : factory.
 */
public void bindFactory(Factory factory) {
  boolean implicated = false;
  String factName = factory.getName();
  String className = factory.getComponentDescription().getClassName();
  for (int i = 0; i < m_configurations.length; i++) {
    if (m_configurations[i].getInstance() == null
        && (m_configurations[i].getNeededFactoryName().equals(factName)
            || m_configurations[i].getNeededFactoryName().equals(className))) {
      createInstance(factory, m_configurations[i]);
      implicated = true;
    }
  }
  if (implicated && ! getValidity()) {
    checkValidity();
  }
}

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

if (factory.getComponentDescription().getprovidedServiceSpecification().length != 0) {
  pw.key("services");
  pw.value(factory.getComponentDescription().getprovidedServiceSpecification());
PropertyDescription[] props = factory.getComponentDescription().getProperties();
if (props != null  && props.length != 0) {
  pw.key("properties");

相关文章