Class ResourceInvocationHandler

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

    class ResourceInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    • Constructor Detail

      • ResourceInvocationHandler

        public ResourceInvocationHandler​(@Nonnull
                                         PlexusIoResource target,
                                         java.lang.Object alternativeHandler)
    • Method Detail

      • asOrNull

        private static <T> T asOrNull​(java.lang.Object instance,
                                      java.lang.Class<T> clazz)
      • 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