public class LoggingWrapper extends Object implements InvocationHandler
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
logger |
Modifier and Type | Method and Description |
---|---|
static <O> O |
createWrappedInstance(String clazzname)
loads the class with the passed classname and returns a logging-enabled instance returned by
wrap(Object) |
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 ''
|
public static <O> O createWrappedInstance(String clazzname) throws InstantiationException, IllegalAccessException, ClassNotFoundException
wrap(Object)
O
- clazzname
- InstantiationException
IllegalAccessException
ClassNotFoundException
public static <O> O wrap(Object handler)
public static <O> O unwrap(O proxy)
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.