org.apache.openjpa.lib.log
Class LogFactoryAdapter

java.lang.Object
  extended by org.apache.openjpa.lib.log.LogFactoryAdapter
All Implemented Interfaces:
LogFactory
Direct Known Subclasses:
CommonsLogFactory, Log4JLogFactory

public abstract class LogFactoryAdapter
extends Object
implements LogFactory

Base type that aids in adapting an external log framework to the LogFactory.

Author:
Abe White

Constructor Summary
LogFactoryAdapter()
           
 
Method Summary
 Log getLog(String channel)
          Return a log for the given channel name.
protected abstract  Log newLogAdapter(String channel)
          Return a log adapter for the given channel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogFactoryAdapter

public LogFactoryAdapter()
Method Detail

getLog

public Log getLog(String channel)
Description copied from interface: LogFactory
Return a log for the given channel name.

Specified by:
getLog in interface LogFactory

newLogAdapter

protected abstract Log newLogAdapter(String channel)
Return a log adapter for the given channel. This method may be called multiple times for the same channel in concurrent situations.



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.