Class ResourceDMBean.MethodAccessor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.reflect.Method method  
      protected java.lang.Object target  
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodAccessor​(java.lang.reflect.Method method, java.lang.Object target)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.reflect.Method getMethod()  
      java.lang.Object invoke​(java.lang.Object new_val)
      Invokes a getter or setter.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • method

        protected final java.lang.reflect.Method method
      • target

        protected final java.lang.Object target
    • Constructor Detail

      • MethodAccessor

        public MethodAccessor​(java.lang.reflect.Method method,
                              java.lang.Object target)
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod()
      • invoke

        public java.lang.Object invoke​(java.lang.Object new_val)
                                throws java.lang.Exception
        Description copied from interface: ResourceDMBean.Accessor
        Invokes a getter or setter. For the getter, new_val must be ignored (null)
        Specified by:
        invoke in interface ResourceDMBean.Accessor
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object