org.webframe.support.driver.loader
Class PropertiesModulePluginLoader
java.lang.Object
org.webframe.support.driver.loader.AbstractModulePluginLoader
org.webframe.support.driver.loader.PropertiesModulePluginLoader
- All Implemented Interfaces:
- ModulePluginLoader
public class PropertiesModulePluginLoader
- extends AbstractModulePluginLoader
Properties模块插件驱动加载器
- Version:
- $Id: codetemplates.xml,v 1.1 2009/09/07 08:48:12 Exp $ Create: 2011-4-5 下午02:39:10
- Author:
- 黄国庆
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modulePluginProperties
private String modulePluginProperties
- 模块插件驱动properties文件路径
urlConnections
private List<URLConnection> urlConnections
jarURLConnections
private List<JarURLConnection> jarURLConnections
defaultPatternList
private List<String> defaultPatternList
defaultSorted
private boolean defaultSorted
PropertiesModulePluginLoader
public PropertiesModulePluginLoader()
PropertiesModulePluginLoader
public PropertiesModulePluginLoader(String modulePluginProperties)
setDefaultSorted
public void setDefaultSorted(boolean defaultSorted)
setDefaultPatternList
public void setDefaultPatternList(List<String> defaultPatternList)
getModulePluginProperties
protected final String getModulePluginProperties()
setModulePluginProperties
public void setModulePluginProperties(String modulePluginProperties)
loadModulePlugin
public void loadModulePlugin()
throws DriverNotExistException
- Description copied from interface:
ModulePluginLoader
- 加载模块插件
- Throws:
DriverNotExistException
sorted
protected List<JarURLConnection> sorted()
sortProperties
protected String[] sortProperties(Map<Object,Integer> driverMap)
- 排序properties,并返回按照排序后properties内容
- Parameters:
driverMap -
- Returns:
loadProperties
protected Map<Object,Integer> loadProperties(List<JarURLConnection> sortUrls)
throws IOException
- 加载properties
- Parameters:
sortUrls -
- Returns:
-
- Throws:
IOException
loadPropertiesJar
protected void loadPropertiesJar()
throws IOException
- 初始化properties所在jar信息
- Throws:
IOException
Copyright © 2012. All Rights Reserved.