Class PublicFieldExecutor


  • public class PublicFieldExecutor
    extends AbstractExecutor
    Returns the value of a public field when executed.
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      PublicFieldExecutor​(org.slf4j.Logger log, Introspector introspector, java.lang.Class<?> clazz, 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.String property)  
      java.lang.Object execute​(java.lang.Object o)
      Execute method against context.
      java.lang.reflect.Field getField()  
      protected Introspector getIntrospector()  
      boolean isAlive()
      Tell whether the executor is alive by looking at the value of the method.
      protected void setField​(java.lang.reflect.Field field)  
      • Methods inherited from class java.lang.Object

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

      • PublicFieldExecutor

        public PublicFieldExecutor​(org.slf4j.Logger log,
                                   Introspector introspector,
                                   java.lang.Class<?> clazz,
                                   java.lang.String property)
        Parameters:
        log -
        introspector -
        clazz -
        property -
        Since:
        1.5
    • Method Detail

      • 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.
      • getField

        public java.lang.reflect.Field getField()
        Returns:
        The current field.
      • setField

        protected void setField​(java.lang.reflect.Field field)
        Parameters:
        field -
      • getIntrospector

        protected Introspector getIntrospector()
        Returns:
        The current introspector.
        Since:
        1.5
      • discover

        protected void discover​(java.lang.Class<?> clazz,
                                java.lang.String property)
        Parameters:
        clazz -
        property -
      • execute

        public java.lang.Object execute​(java.lang.Object o)
                                 throws java.lang.IllegalAccessException,
                                        java.lang.reflect.InvocationTargetException
        Description copied from class: AbstractExecutor
        Execute method against context.
        Specified by:
        execute in class AbstractExecutor
        Returns:
        The resulting object.
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        See Also:
        AbstractExecutor.execute(java.lang.Object)