org.test4j.module.core.utility
类 ModulesLoader

java.lang.Object
  继承者 org.test4j.module.core.utility.ModulesLoader

public class ModulesLoader
extends Object

A class for loading test4j modules.

The core names set by the #PROPKEY_MODULES property which modules will be loaded.
These names can then be used to construct properties that define the classnames and optionally the dependencies of these modules. E.g.

 
 test4j.modules=a, b, c, d
 test4j.modules.a.className= org.test4j.core.AModule
 test4j.modules.a.enabled= false
 
 
The above configuration will load 3 core classes A, B and C and will always perform processing in order C, B, A.


字段摘要
static String PROPKEY_MODULE_ENABLED_CLASS
          特定模块类属性后缀
如果特定的模块类在classpath中不存在,则不加载该模块
static String PROPKEY_MODULE_PREFIX
          First part of all core specific properties.
static String PROPKEY_MODULE_SUFFIX_CLASS_NAME
          Last part of the core specific property that specifies the classname of the core.
static String PROPKEY_MODULE_SUFFIX_ENABLED
          Last part of the core specific property that specifies whether the core should be loaded.
 
构造方法摘要
ModulesLoader()
           
 
方法摘要
static List<Module> loading()
          Loading all test4j modules which are enabled and available.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

PROPKEY_MODULE_PREFIX

public static final String PROPKEY_MODULE_PREFIX
First part of all core specific properties.

另请参见:
常量字段值

PROPKEY_MODULE_SUFFIX_ENABLED

public static final String PROPKEY_MODULE_SUFFIX_ENABLED
Last part of the core specific property that specifies whether the core should be loaded.

另请参见:
常量字段值

PROPKEY_MODULE_ENABLED_CLASS

public static final String PROPKEY_MODULE_ENABLED_CLASS
特定模块类属性后缀
如果特定的模块类在classpath中不存在,则不加载该模块

另请参见:
常量字段值

PROPKEY_MODULE_SUFFIX_CLASS_NAME

public static final String PROPKEY_MODULE_SUFFIX_CLASS_NAME
Last part of the core specific property that specifies the classname of the core.

另请参见:
常量字段值
构造方法详细信息

ModulesLoader

public ModulesLoader()
方法详细信息

loading

public static List<Module> loading()
Loading all test4j modules which are enabled and available.

返回:
the modules which have loaded, not null


Copyright © 2013. All rights reserved.