net.sourceforge.groboutils.codecoverage.v2.logger
Class DirectoryChannelLoggerFactory
java.lang.Object
net.sourceforge.groboutils.codecoverage.v2.logger.DirectoryChannelLoggerFactory
- All Implemented Interfaces:
- IChannelLoggerFactory
- public class DirectoryChannelLoggerFactory
- extends java.lang.Object
- implements IChannelLoggerFactory
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.
- Since:
- December 17, 2002
- Version:
- $Date: 2003/05/04 06:40:09 $
- Author:
- Matt Albrecht groboclown@users.sourceforge.net
Method Summary |
IChannelLogger |
createChannelLogger(java.lang.String propertyPrefix,
java.util.Properties props,
short channelIndex)
Creates a specific logger type. |
protected java.lang.String |
getDirectory(java.lang.String propertyPrefix,
java.util.Properties props)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIRECTORY_PROPERTY
public static final java.lang.String DIRECTORY_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_DIRECTORY
public static final java.lang.String DEFAULT_DIRECTORY
- See Also:
- Constant Field Values
DirectoryChannelLoggerFactory
public DirectoryChannelLoggerFactory()
createChannelLogger
public IChannelLogger createChannelLogger(java.lang.String propertyPrefix,
java.util.Properties props,
short channelIndex)
- Creates a specific logger type. Initializes the logger based on the
given collection of properties.
- Specified by:
createChannelLogger
in interface IChannelLoggerFactory
- Parameters:
propertyPrefix
- the prefix that all logger properties will begin
with. Expect all logger-specific properties to be appended directly
to this string.props
- the property collection to pull the logger properties from.channelIndex
- channel number to log to.
- Returns:
- the initialized logger.
getDirectory
protected java.lang.String getDirectory(java.lang.String propertyPrefix,
java.util.Properties props)
Copyright © 2001-2003 by The GroboUtils Project