Class SecuredItemInvoker

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public class SecuredItemInvoker
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    A generic InvocationHandler that handles the general invocation of the security methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      SecuredItemInvoker​(java.lang.Class<?> securedClass, SecuredItem securedItem)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

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

      • SecuredItemInvoker

        public SecuredItemInvoker​(java.lang.Class<?> securedClass,
                                  SecuredItem securedItem)
        Constructor.
        Parameters:
        securedClass - The class of the object that is being protected.
        securedItem - The implementation of the SecuredItem version of the object.
    • 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