Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.google.inject.slf4j;
 
 import  com.google.inject.AbstractModule;
 
 import static com.google.inject.matcher.Matchers.any;

Module to install which enables automatic injection of slf4j loggers into Guice-managed objects (by field injection only).

Author(s):
dhanji@gmail.com (Dhanji R. Prasanna)
public class Slf4jModule extends AbstractModule {
  protected void configure() {
    bindListener(any(), new Slf4jInjectionTypeListener());
  }
New to GrepCode? Check out our FAQ X