Class SetExecutor

  • Direct Known Subclasses:
    MapSetExecutor, PutExecutor, SetPropertyExecutor

    public abstract class SetExecutor
    extends java.lang.Object
    Abstract class that is used to execute an arbitrary method that is in introspected. This is the superclass for the PutExecutor and SetPropertyExecutor. There really should be a superclass for this and AbstractExecutor (which should be refactored to GetExecutor) because they differ only in the execute() method.
    Since:
    1.5
    Version:
    $Id: SetExecutor.java 685685 2008-08-13 21:43:27Z nbubna $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Log log
      Class logger
      private java.lang.reflect.Method method
      Method to be executed.
    • Constructor Summary

      Constructors 
      Constructor Description
      SetExecutor()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.Object execute​(java.lang.Object o, java.lang.Object value)
      Execute method against context.
      java.lang.reflect.Method getMethod()  
      boolean isAlive()
      Tell whether the executor is alive by looking at the value of the method.
      protected void setMethod​(java.lang.reflect.Method method)  
      • Methods inherited from class java.lang.Object

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

      • log

        protected Log log
        Class logger
      • method

        private java.lang.reflect.Method method
        Method to be executed.
    • Constructor Detail

      • SetExecutor

        public SetExecutor()
    • Method Detail

      • execute

        public abstract java.lang.Object execute​(java.lang.Object o,
                                                 java.lang.Object value)
                                          throws java.lang.IllegalAccessException,
                                                 java.lang.reflect.InvocationTargetException
        Execute method against context.
        Parameters:
        o -
        value -
        Returns:
        The result of the invocation.
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • isAlive

        public boolean isAlive()
        Tell whether the executor is alive by looking at the value of the method.
        Returns:
        True if the executor is alive.
      • getMethod

        public java.lang.reflect.Method getMethod()
        Returns:
        The method to invoke.
      • setMethod

        protected void setMethod​(java.lang.reflect.Method method)
        Parameters:
        method -