Handling base MessageSource case for isReadOnly and setValue
This commit is contained in:
@@ -91,6 +91,9 @@ public class FlowResourceELResolver extends ELResolver {
|
||||
if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
|
||||
context.setPropertyResolved(true);
|
||||
return true;
|
||||
} else if (base instanceof MessageSource) {
|
||||
context.setPropertyResolved(true);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -102,6 +105,8 @@ public class FlowResourceELResolver extends ELResolver {
|
||||
}
|
||||
if (base == null && RESOURCE_BUNDLE_KEY.equals(property)) {
|
||||
throw new PropertyNotWritableException("The flow's MessageSource is not writable.");
|
||||
} else if (base instanceof MessageSource) {
|
||||
throw new PropertyNotWritableException("The flow's MessageSource is not writable.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user