org.webframe.support.driver.relation
Class ModulePluginDependencyUtil
java.lang.Object
org.webframe.support.driver.relation.ModulePluginDependencyUtil
public abstract class ModulePluginDependencyUtil
- extends Object
- Since:
- 2012-4-27 下午12:39:50
- Version:
- Author:
- 黄国庆
|
Method Summary |
static Map<JarURLConnection,ModulePluginDependency> |
analyzeDependendy(List<JarURLConnection> urls,
List<String> patterns)
分析pom中的依赖关系 |
private static void |
disposeFirstDependency(ModulePluginDependency first,
Map<String,ModulePluginDependency> result)
|
private static void |
disposeMatchDependency(Map<String,ModulePluginDependency> result,
ModulePluginDependency match)
|
private static ModulePluginDependency |
findModulePluginDependency(org.dom4j.Element root,
List<String> patterns,
boolean findParent)
从element元素中查询组件 |
private static boolean |
match(String path,
List<String> patterns)
用patterns匹配依赖的groupId,过滤用 |
static List<JarURLConnection> |
sort(List<JarURLConnection> urls,
List<String> patterns)
排序模块插件包加载的优先顺序 |
private static List<JarURLConnection> |
sort(Map<JarURLConnection,ModulePluginDependency> needSort)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MAVEN_POM
public static final String DEFAULT_MAVEN_POM
- See Also:
- Constant Field Values
DEFAULT_GROUPID
public static final String DEFAULT_GROUPID
- See Also:
- Constant Field Values
pathMatcher
public static final org.springframework.util.AntPathMatcher pathMatcher
ModulePluginDependencyUtil
public ModulePluginDependencyUtil()
sort
public static List<JarURLConnection> sort(List<JarURLConnection> urls,
List<String> patterns)
throws IOException
- 排序模块插件包加载的优先顺序
- Parameters:
urls - patterns -
- Returns:
-
- Throws:
IOException
analyzeDependendy
public static Map<JarURLConnection,ModulePluginDependency> analyzeDependendy(List<JarURLConnection> urls,
List<String> patterns)
throws IOException
- 分析pom中的依赖关系
- Parameters:
urls - patterns -
- Returns:
-
- Throws:
IOException
sort
private static List<JarURLConnection> sort(Map<JarURLConnection,ModulePluginDependency> needSort)
disposeFirstDependency
private static void disposeFirstDependency(ModulePluginDependency first,
Map<String,ModulePluginDependency> result)
disposeMatchDependency
private static void disposeMatchDependency(Map<String,ModulePluginDependency> result,
ModulePluginDependency match)
findModulePluginDependency
private static ModulePluginDependency findModulePluginDependency(org.dom4j.Element root,
List<String> patterns,
boolean findParent)
- 从element元素中查询组件
- Parameters:
root - patterns - findParent -
- Returns:
match
private static boolean match(String path,
List<String> patterns)
- 用patterns匹配依赖的groupId,过滤用
- Parameters:
path - patterns -
- Returns:
Copyright © 2012. All Rights Reserved.