net.sourceforge.groboutils.codecoverage.v2.logger
Class StdoutChannelLoggerFactory

java.lang.Object
  extended bynet.sourceforge.groboutils.codecoverage.v2.logger.StdoutChannelLoggerFactory
All Implemented Interfaces:
IChannelLoggerFactory

public class StdoutChannelLoggerFactory
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: 2004/05/11 23:22:33 $
Author:
Matt Albrecht groboclown@users.sourceforge.net

Constructor Summary
StdoutChannelLoggerFactory()
           
 
Method Summary
 IChannelLogger createChannelLogger(java.lang.String propertyPrefix, java.util.Properties props, short channelIndex)
          Creates a specific logger type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdoutChannelLoggerFactory

public StdoutChannelLoggerFactory()
Method Detail

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.


Copyright © 2001-2003 by The GroboUtils Project