Class MessageSourcePropertyAccessor
java.lang.Object
org.springframework.webflow.expression.spel.MessageSourcePropertyAccessor
- All Implemented Interfaces:
org.springframework.expression.PropertyAccessor
public class MessageSourcePropertyAccessor
extends Object
implements org.springframework.expression.PropertyAccessor
Spring EL PropertyAccessor that resolves messages from the MessageSource
of the active Flow. The message
source itself is accessible through the "resourceBundle" variable (see FlowVariablePropertyAccessor
). To
access a specific message use its key in one of the following ways:
resourceBundle.myErrorCode resourceBundle['myErrorCode']
- Since:
- 2.1
- Author:
- Rossen Stoyanchev
-
Constructor Details
-
MessageSourcePropertyAccessor
public MessageSourcePropertyAccessor()
-
-
Method Details
-
getSpecificTargetClasses
- Specified by:
getSpecificTargetClasses
in interfaceorg.springframework.expression.PropertyAccessor
-
canRead
public boolean canRead(org.springframework.expression.EvaluationContext context, Object target, String name) - Specified by:
canRead
in interfaceorg.springframework.expression.PropertyAccessor
-
read
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, Object target, String name) - Specified by:
read
in interfaceorg.springframework.expression.PropertyAccessor
-
canWrite
public boolean canWrite(org.springframework.expression.EvaluationContext context, Object target, String name) - Specified by:
canWrite
in interfaceorg.springframework.expression.PropertyAccessor
-
write
public void write(org.springframework.expression.EvaluationContext context, Object target, String name, Object newValue) throws org.springframework.expression.AccessException - Specified by:
write
in interfaceorg.springframework.expression.PropertyAccessor
- Throws:
org.springframework.expression.AccessException
-