Class LoggingWrapper

java.lang.Object
com.groiss.component.LoggingWrapper
All Implemented Interfaces:
InvocationHandler

public class LoggingWrapper extends Object implements InvocationHandler
adds logging support to arbitrary classes implementing interfaces a dynamic-proxy is used
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <O> O
    loads the class with the passed classname and returns a logging-enabled instance returned by wrap(Object)
    invoke(Object proxy, Method m, Object[] args)
     
    static <O> O
    unwrap(O proxy)
     
    static <O> O
    wrap(Object handler)
    returns a java-dynamic proxy implementing all interfaces the passed object is implementing the returned object is NOT type of the handler.getClass() the wrapping can be disabled using the property ''

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait