org.jboss.modules.Module.getDependenciesInternal()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(105)

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

Module.getDependenciesInternal介绍

暂无

代码示例

代码示例来源:origin: org.jboss.modules/jboss-modules

private List<DependencyInfo> doGetDependencies(final Module module) {
  Dependency[] dependencies = module.getDependenciesInternal();
  if (dependencies == null) {
    return Collections.emptyList();
  }
  ArrayList<DependencyInfo> list = new ArrayList<DependencyInfo>(dependencies.length);
  for (Dependency dependency : dependencies) {
    final String dependencyType = dependency.getClass().getSimpleName();
    final String exportFilter = dependency.getExportFilter().toString();
    final String importFilter = dependency.getImportFilter().toString();
    final DependencyInfo info;
    if (dependency instanceof LocalDependency) {
      final LocalDependency localDependency = (LocalDependency) dependency;
      ArrayList<String> pathList = new ArrayList<String>(localDependency.getPaths());
      Collections.sort(pathList);
      info = new DependencyInfo(dependencyType, exportFilter, importFilter, null, null, false, localDependency.getLocalLoader().toString(), pathList);
    } else if (dependency instanceof ModuleDependency) {
      final ModuleDependency moduleDependency = (ModuleDependency) dependency;
      info = new DependencyInfo(dependencyType, exportFilter, importFilter, moduleDependency.getModuleLoader().mxBean, moduleDependency.getName(), moduleDependency.isOptional(), null, null);
    } else {
      info = new DependencyInfo(dependencyType, exportFilter, importFilter, null, null, false, null, null);
    }
    list.add(info);
  }
  return list;
}

代码示例来源:origin: org.jboss.forge/jboss-modules

private List<DependencyInfo> doGetDependencies(final Module module) {
  Dependency[] dependencies = module.getDependenciesInternal();
  if (dependencies == null) {
    return Collections.emptyList();
  }
  ArrayList<DependencyInfo> list = new ArrayList<DependencyInfo>(dependencies.length);
  for (Dependency dependency : dependencies) {
    final String dependencyType = dependency.getClass().getSimpleName();
    final String exportFilter = dependency.getExportFilter().toString();
    final String importFilter = dependency.getImportFilter().toString();
    final DependencyInfo info;
    if (dependency instanceof LocalDependency) {
      final LocalDependency localDependency = (LocalDependency) dependency;
      ArrayList<String> pathList = new ArrayList<String>(localDependency.getPaths());
      Collections.sort(pathList);
      info = new DependencyInfo(dependencyType, exportFilter, importFilter, null, null, false, localDependency.getLocalLoader().toString(), pathList);
    } else if (dependency instanceof ModuleDependency) {
      final ModuleDependency moduleDependency = (ModuleDependency) dependency;
      info = new DependencyInfo(dependencyType, exportFilter, importFilter, moduleDependency.getModuleLoader().mxBean, moduleDependency.getIdentifier().toString(), moduleDependency.isOptional(), null, null);
    } else {
      info = new DependencyInfo(dependencyType, exportFilter, importFilter, null, null, false, null, null);
    }
    list.add(info);
  }
  return list;
}

代码示例来源:origin: org.jboss.modules/jboss-modules

if (resourceImportFilter != PathFilters.acceptAll()) nestedResourceFilters.add(resourceImportFilter);
  subtract += module.addExportedPaths(module.getDependenciesInternal(), map, nestedFilters, nestedClassFilters, nestedResourceFilters, visited);
} else if (dependency instanceof ModuleClassLoaderDependency) {
  final ModuleClassLoaderDependency classLoaderDependency = (ModuleClassLoaderDependency) dependency;

代码示例来源:origin: org.jboss.forge/jboss-modules

if (resourceImportFilter != PathFilters.acceptAll()) nestedResourceFilters.add(resourceImportFilter);
  subtract += module.addExportedPaths(module.getDependenciesInternal(), map, nestedFilters, nestedClassFilters, nestedResourceFilters, visited);
} else if (dependency instanceof ModuleClassLoaderDependency) {
  final ModuleClassLoaderDependency classLoaderDependency = (ModuleClassLoaderDependency) dependency;

代码示例来源:origin: org.jboss.modules/jboss-modules

if (resourceExportFilter != PathFilters.acceptAll()) nestedResourceFilters.add(resourceExportFilter);
  subtract += module.addExportedPaths(module.getDependenciesInternal(), map, nestedFilters, nestedClassFilters, nestedResourceFilters, visited);
} else if (dependency instanceof ModuleClassLoaderDependency) {
  final ModuleClassLoaderDependency classLoaderDependency = (ModuleClassLoaderDependency) dependency;

代码示例来源:origin: org.jboss.forge/jboss-modules

if (resourceExportFilter != PathFilters.acceptAll()) nestedResourceFilters.add(resourceExportFilter);
  subtract += module.addExportedPaths(module.getDependenciesInternal(), map, nestedFilters, nestedClassFilters, nestedResourceFilters, visited);
} else if (dependency instanceof ModuleClassLoaderDependency) {
  final ModuleClassLoaderDependency classLoaderDependency = (ModuleClassLoaderDependency) dependency;

相关文章