| java.lang.Object net.sourceforge.groboutils.codecoverage.v2.logger.CoverageLogger
CoverageLogger | final public class CoverageLogger implements ICoverageLoggerConst(Code) | | The singleton invoked at runtime to log each marked bytecode instruction
covered.
This class needs to be fast, efficient, thread-safe, and classloader-safe.
"Classloader-safe" means that it needs to be resiliant to multiple instances
of this class being loaded, and possibly interfering with each other.
As of 12-Feb-2003, this class loads up its properties from a property
file, in the same way that Log4J loads its properties. It attempts to
load the property file "/grobocoverage.properties" from the system
resources. If the file cannot be found, then a warning is displayed
to STDERR.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2004/05/14 21:12:11 $ since: December 15, 2002 |
Method Summary | |
final public static void | cover(String classSig, short methodIndex, short channel, short markIndex) The primary entry method. | final public static void | init(Properties props) Initializes or reinitializes the static logger object with a specific
set of properties. | final public static void | initBase() Initializes or reinitializes the static logger object based on the
logger property file, which will be used as the argument to
init( Properties ). |
cover | final public static void cover(String classSig, short methodIndex, short channel, short markIndex)(Code) | | The primary entry method. This must be lean, mean, thread-safe,
and classloader-safe.
|
init | final public static void init(Properties props)(Code) | | Initializes or reinitializes the static logger object with a specific
set of properties.
Parameters: props - collection of properties used to discover the channellogger factory, and to initialize the new channel logger. |
initBase | final public static void initBase()(Code) | | Initializes or reinitializes the static logger object based on the
logger property file, which will be used as the argument to
init( Properties ). If no such file is found, then a
warning is reported to STDERR, and the System properties are passed
into the init method.
|
|
|