Package mondrian.util

Class DelegatingInvocationHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object getTarget()
      Returns the object to forward method calls to, should the derived class not implement the method.
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DelegatingInvocationHandler

        public DelegatingInvocationHandler()
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • getTarget

        protected java.lang.Object getTarget()
                                      throws java.lang.reflect.InvocationTargetException
        Returns the object to forward method calls to, should the derived class not implement the method. Generally, this object will be a member of the derived class, supplied as a parameter to its constructor.

        The default implementation returns null, which will cause the invoke(Object, java.lang.reflect.Method, Object[]) method to throw an UnsupportedOperationException if the derived class does not have the required method.

        Returns:
        object to forward method calls to
        Throws:
        java.lang.reflect.InvocationTargetException - if there is an error acquiring the target