org.apache.commons.inject.api
Class Slf4JLoggerModule

java.lang.Object
  extended by org.apache.commons.inject.api.AbstractLoggerInjectingModule<org.slf4j.Logger>
      extended by org.apache.commons.inject.api.Slf4JLoggerModule
All Implemented Interfaces:
IModule

public class Slf4JLoggerModule
extends AbstractLoggerInjectingModule<org.slf4j.Logger>

A module, which injects SLF4J loggers, aka instances of Logger. If you are using the module, it should precede all others in your module list, when invoking CommonsInject.build(org.apache.commons.inject.api.bind.IModule...), or CommonsInject.build(java.util.Collection). However, the PostConstructModule takes precedence, if you are using that as well.

See Also:
Log4jLoggerModule, Slf4JLoggerModule, CommonsLoggingLoggerModule, AbstractLoggerInjectingModule

Constructor Summary
Slf4JLoggerModule()
           
 
Method Summary
protected  org.slf4j.Logger newLogger(String pId)
          Creates an instance of Logger.
 
Methods inherited from class org.apache.commons.inject.api.AbstractLoggerInjectingModule
configure, getAnnotationClass, getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slf4JLoggerModule

public Slf4JLoggerModule()
Method Detail

newLogger

protected org.slf4j.Logger newLogger(String pId)
Creates an instance of Logger.

Specified by:
newLogger in class AbstractLoggerInjectingModule<org.slf4j.Logger>


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.