@PreventServiceDecoration public class AspectDecoratorImpl extends Object implements AspectDecorator
Constructor and Description |
---|
AspectDecoratorImpl(PlasticProxyFactory proxyFactory) |
Modifier and Type | Method and Description |
---|---|
<T> T |
build(Class<T> serviceInterface,
T delegate,
MethodAdvice advice,
String description)
Intercepts method invocations on the delegate and passes them through the provided aspect.
|
<T> AspectInterceptorBuilder<T> |
createBuilder(Class<T> serviceInterface,
T delegate,
AnnotationAccess annotationAccess,
String description)
Creates a builder that can be used to create the interceptor.
|
<T> AspectInterceptorBuilder<T> |
createBuilder(Class<T> serviceInterface,
T delegate,
String description)
Creates a builder that can be used to create the interceptor.
|
public AspectDecoratorImpl(@Builtin PlasticProxyFactory proxyFactory)
public <T> T build(Class<T> serviceInterface, T delegate, MethodAdvice advice, String description)
AspectDecorator
build
in interface AspectDecorator
serviceInterface
- defines the interface of the interceptor and delegatedelegate
- the object on which methods will be invokedadvice
- intercepts the method invocations on the delegatedescription
- used as the toString() of the returned interceptor, unless toString() is part of the
service interfacepublic <T> AspectInterceptorBuilder<T> createBuilder(Class<T> serviceInterface, T delegate, String description)
AspectDecorator
createBuilder
in interface AspectDecorator
serviceInterface
- defines the interface of the interceptor and the delegatedelegate
- the object on which methods will be invokesdescription
- used as the toString() of the interceptor unless toString() is part of the service
interfacepublic <T> AspectInterceptorBuilder<T> createBuilder(Class<T> serviceInterface, T delegate, AnnotationAccess annotationAccess, String description)
AspectDecorator
createBuilder
in interface AspectDecorator
serviceInterface
- defines the interface of the interceptor and the delegatedelegate
- the object on which methods will be invokesannotationAccess
- provides access to combined annotations of the underlying service
and service interfacedescription
- used as the toString() of the interceptor unless toString() is part of the service
interfaceCopyright © 2003-2012 The Apache Software Foundation.