org.norther.tammi.acorn.logger
Class DefaultLogFactory

java.lang.Object
  extended by org.norther.tammi.acorn.logger.DefaultLogFactory
All Implemented Interfaces:
LogFactory

public class DefaultLogFactory
extends Object
implements LogFactory

A default implementation of LogFactory.

Author:
Ilkka Priha

Constructor Summary
DefaultLogFactory()
          Constructs a new factory.
 
Method Summary
 Object getContext()
          Gets the log context.
 Log getInstance()
          Gets an anonymous log instance.
 Log getInstance(Object object)
          Gets an object log instance.
 void release()
          Releases cached instances.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogFactory

public DefaultLogFactory()
Constructs a new factory.

Method Detail

getInstance

public Log getInstance()
Description copied from interface: LogFactory
Gets an anonymous log instance.

Specified by:
getInstance in interface LogFactory
Returns:
a log instance.

getInstance

public Log getInstance(Object object)
Description copied from interface: LogFactory
Gets an object log instance.

Specified by:
getInstance in interface LogFactory
Parameters:
object - the log object.
Returns:
a log instance.

getContext

public Object getContext()
Description copied from interface: LogFactory
Gets the log context.

Specified by:
getContext in interface LogFactory
Returns:
the context.

release

public void release()
Description copied from interface: LogFactory
Releases cached instances.

Specified by:
release in interface LogFactory


Copyright © 2004 The Norther Organization. All rights reserved.