Class LoggingDecoratorImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.services.LoggingDecoratorImpl
- All Implemented Interfaces:
LoggingDecorator
@PreventServiceDecoration
public class LoggingDecoratorImpl
extends Object
implements LoggingDecorator
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingDecoratorImpl
(AspectDecorator aspectDecorator, LoggingAdvisor advisor) -
Method Summary
-
Constructor Details
-
LoggingDecoratorImpl
-
-
Method Details
-
build
public <T> T build(Class<T> serviceInterface, T delegate, String serviceId, org.slf4j.Logger logger) Description copied from interface:LoggingDecorator
Builds a logging interceptor instance.- Specified by:
build
in interfaceLoggingDecorator
- Parameters:
serviceInterface
- interface implemented by the delegatedelegate
- existing object to be wrappedserviceId
- id of servicelogger
- log used for debug level logging messages by the interceptor- Returns:
- a new object implementing the interface that can be used in place of the delegate, providing logging behavior around each method call on the service interface
-