org.apache.cocoon.core.container.spring.logger
Class LoggerFactoryBean

java.lang.Object
  extended byorg.apache.cocoon.core.container.spring.logger.LoggerFactoryBean
All Implemented Interfaces:
FactoryBean
Direct Known Subclasses:
ChildLoggerFactoryBean

public class LoggerFactoryBean
extends Object
implements FactoryBean

Spring factory bean to setup the Commons Logging logger with specified category.

If category was not set, default category 'cocoon' is used.

Since:
2.2
Version:
$Id: LoggerFactoryBean.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
LoggerFactoryBean()
           
 
Method Summary
 String getCategory()
           
 Object getObject()
           
 Class getObjectType()
           
 void init()
           
 boolean isSingleton()
           
 void setCategory(String category)
           
protected  void setLogger(Log logger)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerFactoryBean

public LoggerFactoryBean()
Method Detail

getCategory

public String getCategory()

setCategory

public void setCategory(String category)

setLogger

protected void setLogger(Log logger)

init

public void init()

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception
See Also:
FactoryBean.getObject()

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean
See Also:
FactoryBean.getObjectType()

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean
See Also:
FactoryBean.isSingleton()


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.