public class ValueFilterInterceptor extends Interceptor
| Constructor and Description |
|---|
ValueFilterInterceptor(ILoadPaths loadPaths) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
filter(java.lang.Object o) |
protected java.lang.Object |
filterAccessor(java.lang.Object o,
java.lang.String accessor) |
protected java.lang.Object |
filterArgument(java.lang.Object arg) |
protected ReturnValue |
filterReturnValue(ReturnValue returnValue) |
ReturnValue |
onGetBeanProperty(IInvoker invoker,
java.lang.Object receiver,
java.lang.String property)
Gets a Java Bean property
|
ReturnValue |
onGetInstanceField(IInvoker invoker,
java.lang.Object receiver,
java.lang.Class<?> receiverFormalType,
java.lang.String fieldName)
Get an instance field's value
|
ReturnValue |
onGetStaticField(IInvoker invoker,
java.lang.Class<?> receiver,
java.lang.String fieldName)
Get a static field's value
|
ReturnValue |
onInvokeConstructor(IInvoker invoker,
java.lang.Class<?> receiver,
java.lang.Object... args)
Invokes a constructor
|
ReturnValue |
onInvokeInstanceMethod(IInvoker invoker,
java.lang.Object receiver,
java.lang.Class<?> receiverFormalType,
java.lang.String method,
java.lang.Object... args)
Invokes an instance method
|
ReturnValue |
onInvokeStaticMethod(IInvoker invoker,
java.lang.Class<?> receiver,
java.lang.String method,
java.lang.Object... args)
Invokes a static method
|
void |
onSetBeanProperty(IInvoker invoker,
java.lang.Object receiver,
java.lang.String property,
java.lang.Object value)
Sets a Java Bean property
|
getLoadPaths, getMaxExecutionTimeSeconds, getMaxFutureThreadPoolSize, onLoadClassPathResource, onReadSystemEnv, onReadSystemProperty, validateLoadModule, validateMaxExecutionTime, validateVeniceFunctionpublic ValueFilterInterceptor(ILoadPaths loadPaths)
public ReturnValue onInvokeInstanceMethod(IInvoker invoker, java.lang.Object receiver, java.lang.Class<?> receiverFormalType, java.lang.String method, java.lang.Object... args) throws SecurityException
IInterceptoronInvokeInstanceMethod in interface IInterceptoronInvokeInstanceMethod in class Interceptorinvoker - the invokerreceiver - an objectreceiverFormalType - the formal type of the receiver (e.g a superclass)method - a methodargs - a list of argumentsSecurityException - if the instance method is not whitelistedpublic ReturnValue onInvokeStaticMethod(IInvoker invoker, java.lang.Class<?> receiver, java.lang.String method, java.lang.Object... args) throws SecurityException
IInterceptoronInvokeStaticMethod in interface IInterceptoronInvokeStaticMethod in class Interceptorinvoker - the invokerreceiver - a classmethod - a methodargs - a list of argumentsSecurityException - if the static method is not whitelistedpublic ReturnValue onInvokeConstructor(IInvoker invoker, java.lang.Class<?> receiver, java.lang.Object... args) throws SecurityException
IInterceptoronInvokeConstructor in interface IInterceptoronInvokeConstructor in class Interceptorinvoker - the invokerreceiver - a classargs - a list of argumentsSecurityException - if the constructor is not whitelistedpublic ReturnValue onGetBeanProperty(IInvoker invoker, java.lang.Object receiver, java.lang.String property) throws SecurityException
IInterceptoronGetBeanProperty in interface IInterceptoronGetBeanProperty in class Interceptorinvoker - the invokerreceiver - an objectproperty - a property nameSecurityException - if the bean property (instance method) is not whitelistedpublic void onSetBeanProperty(IInvoker invoker, java.lang.Object receiver, java.lang.String property, java.lang.Object value) throws SecurityException
IInterceptoronSetBeanProperty in interface IInterceptoronSetBeanProperty in class Interceptorinvoker - the invokerreceiver - an objectproperty - a property namevalue - a property valueSecurityException - if the bean property (instance method) is not whitelistedpublic ReturnValue onGetStaticField(IInvoker invoker, java.lang.Class<?> receiver, java.lang.String fieldName) throws SecurityException
IInterceptoronGetStaticField in interface IInterceptoronGetStaticField in class Interceptorinvoker - the invokerreceiver - a classfieldName - a field nameSecurityException - if the static field is not whitelistedpublic ReturnValue onGetInstanceField(IInvoker invoker, java.lang.Object receiver, java.lang.Class<?> receiverFormalType, java.lang.String fieldName) throws SecurityException
IInterceptoronGetInstanceField in interface IInterceptoronGetInstanceField in class Interceptorinvoker - the invokerreceiver - an objectreceiverFormalType - the formal type of the receiver (e.g a superclass)fieldName - a field nameSecurityException - if the instance field is not whitelistedprotected ReturnValue filterReturnValue(ReturnValue returnValue)
protected java.lang.Object filterArgument(java.lang.Object arg)
protected java.lang.Object filter(java.lang.Object o)
protected java.lang.Object filterAccessor(java.lang.Object o,
java.lang.String accessor)