Class Slf4jLogAnnotationProcessor

  • All Implemented Interfaces:
    FieldPostProcessor<Log>

    public class Slf4jLogAnnotationProcessor
    extends java.lang.Object
    implements FieldPostProcessor<Log>
    Injects org.slf4j.Logger instance into fields annotated with @Log annotation.
    Since:
    30.06.2014
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(Log annotation, java.lang.reflect.Field field, java.lang.Object instance)
      Called to post process annotated bean filed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Slf4jLogAnnotationProcessor

        public Slf4jLogAnnotationProcessor()
    • 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: FieldPostProcessor
        Called to post process annotated bean filed. It is safe to avoid explicit exception handling (except special cases required by processor logic).
        Specified by:
        process in interface FieldPostProcessor<Log>
        Parameters:
        annotation - annotation instance
        field - annotated field
        instance - bean instance
        Throws:
        java.lang.Exception - on any unrecoverable error
        See Also:
        AnnotatedFieldTypeListener