Class MapGetExecutor


  • public class MapGetExecutor
    extends AbstractExecutor
    GetExecutor that is smart about Maps. If it detects one, it does not use Reflection but a cast to access the getter.
    Since:
    1.5
    Version:
    $Id$
    Author:
    Henning P. Schmiedehausen
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      MapGetExecutor​(org.slf4j.Logger log, java.lang.Object object, java.lang.String property)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean discover​(java.lang.Object object)  
      java.lang.Object execute​(java.lang.Object o)
      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.
      • Methods inherited from class java.lang.Object

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

      • MapGetExecutor

        public MapGetExecutor​(org.slf4j.Logger log,
                              java.lang.Object object,
                              java.lang.String property)
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod()
        Overrides:
        getMethod in class AbstractExecutor
        Returns:
        The current method.
      • isAlive

        public boolean isAlive()
        Description copied from class: AbstractExecutor
        Tell whether the executor is alive by looking at the value of the method.
        Overrides:
        isAlive in class AbstractExecutor
        Returns:
        True if executor is alive.
      • discover

        protected boolean discover​(java.lang.Object object)
      • execute

        public java.lang.Object execute​(java.lang.Object o)
        Description copied from class: AbstractExecutor
        Execute method against context.
        Specified by:
        execute in class AbstractExecutor
        Returns:
        The resulting object.