public class MessageSourcePropertyAccessor
extends java.lang.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']
Constructor and Description |
---|
MessageSourcePropertyAccessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
boolean |
canWrite(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
java.lang.Class[] |
getSpecificTargetClasses() |
org.springframework.expression.TypedValue |
read(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name) |
void |
write(org.springframework.expression.EvaluationContext context,
java.lang.Object target,
java.lang.String name,
java.lang.Object newValue) |
public java.lang.Class[] getSpecificTargetClasses()
getSpecificTargetClasses
in interface org.springframework.expression.PropertyAccessor
public boolean canRead(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name) throws org.springframework.expression.AccessException
canRead
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name) throws org.springframework.expression.AccessException
read
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public boolean canWrite(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name) throws org.springframework.expression.AccessException
canWrite
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException
public void write(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name, java.lang.Object newValue) throws org.springframework.expression.AccessException
write
in interface org.springframework.expression.PropertyAccessor
org.springframework.expression.AccessException