Package org.hcjf.layers
Interface LayerProxy
-
public interface LayerProxyThis class wrap the layer invocation with two method, one before the invocation and other after invocation.- Author:
- javaito
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLayerProxy.ProxyInterceptorThis class is the result of the before invoke method.
-
Method Summary
Modifier and Type Method Description voidonAfterInvoke(java.lang.reflect.Method method, java.lang.Object result, java.lang.Object... params)This method is called after of layer invocation.LayerProxy.ProxyInterceptoronBeforeInvoke(java.lang.reflect.Method method, java.lang.Object... params)This method is called before of layer invocation.
-
-
-
Method Detail
-
onBeforeInvoke
LayerProxy.ProxyInterceptor onBeforeInvoke(java.lang.reflect.Method method, java.lang.Object... params)
This method is called before of layer invocation.- Parameters:
method- Layer's method to invoke.params- Parameter's method.- Returns:
- Proxy interceptor instance.
-
onAfterInvoke
void onAfterInvoke(java.lang.reflect.Method method, java.lang.Object result, java.lang.Object... params)This method is called after of layer invocation.- Parameters:
method- Layer's method to invoke.result- Layer's invocation result.params- Parameter's method.
-
-