|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoggingDecorator
Service that can create a logging interceptor that wraps around a service implementation (or interceptor). The interceptor works with the service's log to log, at debug level, method entry (with arguments), method exit (with return value, if any) as well as any thrown exceptions.
This represents the Tapestry 5.0 decorator approach; for Tapestry 5.1 you may want to use the LoggingAdvisor
in conjunction with a service advisor method.
Method Summary | ||
---|---|---|
|
build(Class<T> serviceInterface,
T delegate,
String serviceId,
org.slf4j.Logger logger)
Builds a logging interceptor instance. |
Method Detail |
---|
<T> T build(Class<T> serviceInterface, T delegate, String serviceId, org.slf4j.Logger logger)
T
- serviceInterface
- interface implemented by the delegatedelegate
- existing object to be wrappedserviceId
- id of servicelogger
- log used for debug level logging messages by the interceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |