Class PutExecutor


  • public class PutExecutor
    extends SetExecutor
    Executor that simply tries to execute a put(key, value) operation. This will try to find a put(key) method for any type of object, not just objects that implement the Map interface as was previously the case.
    Since:
    1.5
    Version:
    $Id: PutExecutor.java 687177 2008-08-19 22:00:32Z nbubna $
    • Constructor Summary

      Constructors 
      Constructor Description
      PutExecutor​(Log log, Introspector introspector, java.lang.Class clazz, java.lang.Object arg, java.lang.String property)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void discover​(java.lang.Class clazz, java.lang.Object arg)  
      java.lang.Object execute​(java.lang.Object o, java.lang.Object value)
      Execute method against context.
      • Methods inherited from class java.lang.Object

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

      • property

        private final java.lang.String property
    • Constructor Detail

      • PutExecutor

        public PutExecutor​(Log log,
                           Introspector introspector,
                           java.lang.Class clazz,
                           java.lang.Object arg,
                           java.lang.String property)
        Parameters:
        log -
        introspector -
        clazz -
        arg -
        property -
    • Method Detail

      • discover

        protected void discover​(java.lang.Class clazz,
                                java.lang.Object arg)
        Parameters:
        clazz -
        arg -
      • execute

        public java.lang.Object execute​(java.lang.Object o,
                                        java.lang.Object value)
                                 throws java.lang.IllegalAccessException,
                                        java.lang.reflect.InvocationTargetException
        Description copied from class: SetExecutor
        Execute method against context.
        Specified by:
        execute in class SetExecutor
        Returns:
        The result of the invocation.
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        See Also:
        SetExecutor.execute(java.lang.Object, java.lang.Object)