Interface LayerProxy


  • public interface LayerProxy
    This 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 class  LayerProxy.ProxyInterceptor
      This class is the result of the before invoke method.
    • Method Summary

      Modifier and Type Method Description
      void onAfterInvoke​(java.lang.reflect.Method method, java.lang.Object result, java.lang.Object... params)
      This method is called after of layer invocation.
      LayerProxy.ProxyInterceptor onBeforeInvoke​(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.