Package com.hybris.cockpitng.type.impl
Class DefaultObjectValueService
- java.lang.Object
-
- com.hybris.cockpitng.type.impl.DefaultObjectValueService
-
- All Implemented Interfaces:
ObjectValueService
public class DefaultObjectValueService extends java.lang.Object implements ObjectValueService
Service that handle values access by SpEL language.
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectValueService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetValue(java.lang.String expression, java.lang.Object object)Gets value of field from object accessed by given SpEL expressionvoidsetModelValueHandlerFactory(ModelValueHandlerFactory modelValueHandlerFactory)voidsetValue(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
-
-
-
Method Detail
-
getValue
public <T> T getValue(java.lang.String expression, java.lang.Object object) throws org.springframework.expression.EvaluationExceptionDescription copied from interface:ObjectValueServiceGets value of field from object accessed by given SpEL expression- Specified by:
getValuein interfaceObjectValueService- Parameters:
expression- SpEL expressionobject- 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.EvaluationExceptionDescription copied from interface:ObjectValueServiceSets the given value to a field of object accessed by given SpEL expression- Specified by:
setValuein interfaceObjectValueService- Parameters:
expression- SpEL expressionobject- the object to apply the expression onvalue- the value to store- Throws:
org.springframework.expression.EvaluationException
-
-