com.googlecode.sli4j.slf4j.log4j
Class Slf4jLog4jLoggerInjector

java.lang.Object
  extended by com.googlecode.sli4j.core.AbstractLoggerInjector<org.slf4j.Logger>
      extended by com.googlecode.sli4j.slf4j.log4j.Slf4jLog4jLoggerInjector
All Implemented Interfaces:
com.google.inject.MembersInjector<org.slf4j.Logger>

public final class Slf4jLog4jLoggerInjector
extends AbstractLoggerInjector<org.slf4j.Logger>

SLF4J - Apache Log4j logger injector implementation.

Version:
$Id: Slf4jLog4jLoggerInjector.java 249 2010-06-05 14:31:21Z simone.tripodi $
Author:
Simone Tripodi

Constructor Summary
Slf4jLog4jLoggerInjector(Field field)
          Creates a new SLF4J - Apache Log4j Logger injector.
 
Method Summary
protected  org.slf4j.Logger createLogger(Class<?> klass)
          
 
Methods inherited from class com.googlecode.sli4j.core.AbstractLoggerInjector
injectMembers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slf4jLog4jLoggerInjector

public Slf4jLog4jLoggerInjector(Field field)
Creates a new SLF4J - Apache Log4j Logger injector.

Parameters:
field - the logger field has to be injected.
Method Detail

createLogger

protected org.slf4j.Logger createLogger(Class<?> klass)

Specified by:
createLogger in class AbstractLoggerInjector<org.slf4j.Logger>


Copyright © 2010. All Rights Reserved.