public class ValidatingProxy extends Object implements InvocationHandler, javax.inject.Provider<Object>
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
create(Class<T> serviceInterface,
T wrappedService,
ValidatorUtil validatorUtil)
Creates a proxy for the given service, which validates arguments before
calling the service.
|
Object |
get()
Wrapped implementation
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic Object get()
get in interface javax.inject.Provider<Object>public static <T> T create(Class<T> serviceInterface, T wrappedService, ValidatorUtil validatorUtil)
serviceInterface - is the interface to use for the proxywrappedService - is the implementation that will be calledCopyright © 2020 Fortnox AB. All rights reserved.