org.jvnet.hk2.config.DomDocument.initXRef()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(106)

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

DomDocument.initXRef介绍

[英]probably a bit slow, calculates all the @Configured interfaces subclassing, useful to find all possible subclasses of a type.
[中]可能有点慢,计算所有@Configured接口子类,这对于查找类型的所有可能子类都很有用。

代码示例

代码示例来源:origin: javaee/glassfish

/**
 * Calculates all @Configured interfaces subclassing the passed interface type.
 *
 * @param intf a @Configured interface
 * @return List of all @Configured subclasses
 * @throws ClassNotFoundException
 */
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
  if (implementorsOf.size()==0) {
    initXRef();
  }
  return implementorsOf.getOne(intf);   
}

代码示例来源:origin: org.glassfish.hk2/config

/**
 * Calculates all @Configured interfaces subclassing the passed interface type.
 *
 * @param intf a @Configured interface
 * @return List of all @Configured subclasses
 * @throws ClassNotFoundException
 */
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
  if (implementorsOf.size()==0) {
    initXRef();
  }
  return implementorsOf.getOne(intf);   
}

代码示例来源:origin: eclipse-ee4j/glassfish

/**
 * Calculates all @Configured interfaces subclassing the passed interface type.
 *
 * @param intf a @Configured interface
 * @return List of all @Configured subclasses
 * @throws ClassNotFoundException
 */
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
  if (implementorsOf.size()==0) {
    initXRef();
  }
  return implementorsOf.getOne(intf);   
}

代码示例来源:origin: com.sun.enterprise/config

/**
 * Calculates all @Configured interfaces subclassing the passed interface type.
 *
 * @param intf a @Configured interface
 * @return List of all @Configured subclasses
 * @throws ClassNotFoundException
 */
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
  if (implementorsOf.size()==0) {
    initXRef();
  }
  return implementorsOf.getOne(intf);   
}

代码示例来源:origin: org.glassfish.hk2/hk2-config

/**
 * Calculates all @Configured interfaces subclassing the passed interface type.
 *
 * @param intf a @Configured interface
 * @return List of all @Configured subclasses
 * @throws ClassNotFoundException
 */
public synchronized List<ConfigModel> getAllModelsImplementing(Class intf) throws ClassNotFoundException {
  if (implementorsOf.size()==0) {
    initXRef();
  }
  return implementorsOf.getOne(intf);   
}

相关文章