net.java.dev.vcc.spi
Class AbstractLogFactory

java.lang.Object
  extended by net.java.dev.vcc.spi.AbstractLogFactory
All Implemented Interfaces:
LogFactory

public abstract class AbstractLogFactory
extends java.lang.Object
implements LogFactory

Base class to for implementors of LogFactory


Constructor Summary
protected AbstractLogFactory()
          Default constructor.
 
Method Summary
 Log getLog(java.lang.Class clazz)
          Gets the Log named clazz.getName().
 Log getLog(java.lang.Class clazz, java.lang.String bundleName)
          Gets the Log named clazz.getName().
 Log getLog(java.lang.String name)
          Gets the Log by name.
 Log getLog(java.lang.String name, java.lang.String bundleName)
          Gets the Log by name.
protected abstract  Log newLog(java.lang.String name, java.lang.String bundleName)
          Creates the named Log instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLogFactory

protected AbstractLogFactory()
Default constructor.

Method Detail

getLog

public final Log getLog(java.lang.Class clazz)
Gets the Log named clazz.getName().

Specified by:
getLog in interface LogFactory
Parameters:
clazz - The class to get the Log for.
Returns:
The Log.

getLog

public final Log getLog(java.lang.String name)
Gets the Log by name.

Specified by:
getLog in interface LogFactory
Parameters:
name - The name of the Log to get.
Returns:
The Log.

getLog

public final Log getLog(java.lang.Class clazz,
                        java.lang.String bundleName)
Gets the Log named clazz.getName().

Specified by:
getLog in interface LogFactory
Parameters:
clazz - The class to get the Log for.
bundleName - name of ResourceBundle to be used for localizing messages for this logger. May be null if none of the messages require localization.
Returns:
The Log.

getLog

public final Log getLog(java.lang.String name,
                        java.lang.String bundleName)
Gets the Log by name.

Specified by:
getLog in interface LogFactory
Parameters:
name - The name of the Log to get.
bundleName - name of ResourceBundle to be used for localizing messages for this logger. May be null if none of the messages require localization.
Returns:
The Log.

newLog

protected abstract Log newLog(java.lang.String name,
                              java.lang.String bundleName)
Creates the named Log instance.

Parameters:
name - The name of the Log to create.
Returns:
The Log.


Copyright © 2009. All Rights Reserved.