org.webframe.support.driver.loader
Class PropertiesModulePluginLoader

java.lang.Object
  extended by org.webframe.support.driver.loader.AbstractModulePluginLoader
      extended by 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:
黄国庆

Field Summary
private  List<String> defaultPatternList
           
private  boolean defaultSorted
           
private  List<JarURLConnection> jarURLConnections
           
private  String modulePluginProperties
          模块插件驱动properties文件路径
private  List<URLConnection> urlConnections
           
 
Fields inherited from class org.webframe.support.driver.loader.AbstractModulePluginLoader
log
 
Fields inherited from interface org.webframe.support.driver.loader.ModulePluginLoader
MODULE_PLUGIN_KEY
 
Constructor Summary
PropertiesModulePluginLoader()
           
PropertiesModulePluginLoader(String modulePluginProperties)
           
 
Method Summary
protected  String getModulePluginProperties()
           
 void loadModulePlugin()
          加载模块插件
protected  Map<Object,Integer> loadProperties(List<JarURLConnection> sortUrls)
          加载properties
protected  void loadPropertiesJar()
          初始化properties所在jar信息
 void setDefaultPatternList(List<String> defaultPatternList)
           
 void setDefaultSorted(boolean defaultSorted)
           
 void setModulePluginProperties(String modulePluginProperties)
           
protected  List<JarURLConnection> sorted()
           
protected  String[] sortProperties(Map<Object,Integer> driverMap)
          排序properties,并返回按照排序后properties内容
 
Methods inherited from class org.webframe.support.driver.loader.AbstractModulePluginLoader
enableWebframeLog, loadModulePlugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modulePluginProperties

private String modulePluginProperties
模块插件驱动properties文件路径


urlConnections

private List<URLConnection> urlConnections

jarURLConnections

private List<JarURLConnection> jarURLConnections

defaultPatternList

private List<String> defaultPatternList

defaultSorted

private boolean defaultSorted
Constructor Detail

PropertiesModulePluginLoader

public PropertiesModulePluginLoader()

PropertiesModulePluginLoader

public PropertiesModulePluginLoader(String modulePluginProperties)
Method Detail

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.