Package ru.vyarus.guice.ext.log
Class Slf4jLogAnnotationProcessor
- java.lang.Object
-
- ru.vyarus.guice.ext.log.Slf4jLogAnnotationProcessor
-
- All Implemented Interfaces:
FieldPostProcessor<Log>
public class Slf4jLogAnnotationProcessor extends java.lang.Object implements FieldPostProcessor<Log>
Injectsorg.slf4j.Loggerinstance into fields annotated with @Log annotation.- Since:
- 30.06.2014
-
-
Constructor Summary
Constructors Constructor Description Slf4jLogAnnotationProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(Log annotation, java.lang.reflect.Field field, java.lang.Object instance)Called to post process annotated bean filed.
-
-
-
Method Detail
-
process
public void process(Log annotation, java.lang.reflect.Field field, java.lang.Object instance) throws java.lang.Exception
Description copied from interface:FieldPostProcessorCalled to post process annotated bean filed. It is safe to avoid explicit exception handling (except special cases required by processor logic).- Specified by:
processin interfaceFieldPostProcessor<Log>- Parameters:
annotation- annotation instancefield- annotated fieldinstance- bean instance- Throws:
java.lang.Exception- on any unrecoverable error- See Also:
AnnotatedFieldTypeListener
-
-