com.googlecode.sli4j.core
Class AbstractLoggerInjector<L>
java.lang.Object
com.googlecode.sli4j.core.AbstractLoggerInjector<L>
- All Implemented Interfaces:
- com.google.inject.MembersInjector<L>
public abstract class AbstractLoggerInjector<L>
- extends Object
- implements com.google.inject.MembersInjector<L>
The abstract Logger injector implementation, takes care of injecting the
concrete Logger implementation to the logged filed.
- Version:
- $Id: AbstractLoggerInjector.java 233 2010-06-05 14:06:59Z simone.tripodi $
- Author:
- Simone Tripodi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLoggerInjector
public AbstractLoggerInjector(Field field)
- Creates a new Logger injector.
- Parameters:
field - the logger field has to be injected.
injectMembers
public final void injectMembers(Object target)
-
- Specified by:
injectMembers in interface com.google.inject.MembersInjector<L>
createLogger
protected abstract L createLogger(Class<?> klass)
- Creates a new Logger implementation for the specified Class.
- Returns:
- a new Logger implementation.
Copyright © 2010. All Rights Reserved.