Class SimplePropertyInvoker


  • public class SimplePropertyInvoker
    extends AbstractPropertyInvoker
    SimplePropertyInvoker stores setter methods for a class to make method invocation of simple properties easier.
    Version:
    $Revision: 1441 $ $Date: 2010-07-01 18:55:43 +0200 (Thu, 01 Jul 2010) $
    Author:
    Middleware Services
    • Constructor Detail

      • SimplePropertyInvoker

        public SimplePropertyInvoker​(java.lang.Class<?> c)
        Creates a new SimplePropertyInvoker for the supplied class.
        Parameters:
        c - Class that has setter methods
    • Method Detail

      • convertValue

        protected java.lang.Object convertValue​(java.lang.Class<?> type,
                                                java.lang.String value)
        This converts the supplied string value into an Object of the appropriate supplied type. If value cannot be converted it is returned as is.
        Specified by:
        convertValue in class AbstractPropertyInvoker
        Parameters:
        type - of object to convert value into
        value - to parse
        Returns:
        object of the supplied type