org.webframe.support.driver.loader
Class AbstractModulePluginLoader

java.lang.Object
  extended by org.webframe.support.driver.loader.AbstractModulePluginLoader
All Implemented Interfaces:
ModulePluginLoader
Direct Known Subclasses:
DefaultModulePluginLoader, PropertiesModulePluginLoader

public abstract class AbstractModulePluginLoader
extends Object
implements ModulePluginLoader

抽象模块插件加载器,提供class.forName加载模块插件类

Version:
$Id: codetemplates.xml,v 1.1 2009/09/07 08:48:12 Exp $ Create: 2011-4-5 下午02:21:01
Author:
黄国庆

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from interface org.webframe.support.driver.loader.ModulePluginLoader
MODULE_PLUGIN_KEY
 
Constructor Summary
AbstractModulePluginLoader()
           
 
Method Summary
 void enableWebframeLog(boolean enable)
          是否开启Webframe框架日志
protected  void loadModulePlugin(String[] drivers)
          通过给定的模块插件驱动类全路径数组,加载模块插件驱动
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.webframe.support.driver.loader.ModulePluginLoader
loadModulePlugin
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

AbstractModulePluginLoader

public AbstractModulePluginLoader()
Method Detail

loadModulePlugin

protected void loadModulePlugin(String[] drivers)
                         throws DriverNotExistException
通过给定的模块插件驱动类全路径数组,加载模块插件驱动

Parameters:
drivers - 模块插件驱动类全路径数组,例如:
 String[] drivers = {
           "org.webframe.core.CoreModulePluginDriver"}; 
Throws:
DriverNotExistException

enableWebframeLog

public void enableWebframeLog(boolean enable)
Description copied from interface: ModulePluginLoader
是否开启Webframe框架日志

Specified by:
enableWebframeLog in interface ModulePluginLoader


Copyright © 2012. All Rights Reserved.