Class DefaultObjectValueService

  • All Implemented Interfaces:
    ObjectValueService

    public class DefaultObjectValueService
    extends java.lang.Object
    implements ObjectValueService
    Service that handle values access by SpEL language.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getValue​(java.lang.String expression, java.lang.Object object)
      Gets value of field from object accessed by given SpEL expression
      void setModelValueHandlerFactory​(ModelValueHandlerFactory modelValueHandlerFactory)  
      void setValue​(java.lang.String expression, java.lang.Object object, java.lang.Object value)
      Sets the given value to a field of object accessed by given SpEL expression
      • Methods inherited from class java.lang.Object

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

      • DefaultObjectValueService

        public DefaultObjectValueService()
    • Method Detail

      • getValue

        public <T> T getValue​(java.lang.String expression,
                              java.lang.Object object)
                       throws org.springframework.expression.EvaluationException
        Description copied from interface: ObjectValueService
        Gets value of field from object accessed by given SpEL expression
        Specified by:
        getValue in interface ObjectValueService
        Parameters:
        expression - SpEL expression
        object - to access
        Returns:
        a value of field from object accessed by given SpEL expression
        Throws:
        org.springframework.expression.EvaluationException
      • setModelValueHandlerFactory

        public void setModelValueHandlerFactory​(ModelValueHandlerFactory modelValueHandlerFactory)
      • setValue

        public void setValue​(java.lang.String expression,
                             java.lang.Object object,
                             java.lang.Object value)
                      throws org.springframework.expression.EvaluationException
        Description copied from interface: ObjectValueService
        Sets the given value to a field of object accessed by given SpEL expression
        Specified by:
        setValue in interface ObjectValueService
        Parameters:
        expression - SpEL expression
        object - the object to apply the expression on
        value - the value to store
        Throws:
        org.springframework.expression.EvaluationException