public class MessagePartitionKeyPropertyAccessor
extends org.springframework.expression.spel.support.ReflectivePropertyAccessor
PropertyAccessor reading values from a backing Message used by a
partition key. In a way this is similar than MapAccessor for header but also
adds 'payload' and 'headers' to be resolved. Having 'payload' or 'headers' keywords
in headers is not possible to access via this accessor.| Modifier and Type | Class and Description |
|---|---|
static class |
MessagePartitionKeyPropertyAccessor.MessageOptimalPropertyAccessor |
| Constructor and Description |
|---|
MessagePartitionKeyPropertyAccessor() |
| 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) |
org.springframework.expression.PropertyAccessor |
createOptimalAccessor(org.springframework.expression.EvaluationContext evalContext,
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.PropertyAccessorgetSpecificTargetClasses in class org.springframework.expression.spel.support.ReflectivePropertyAccessorpublic 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.PropertyAccessorcanRead in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionpublic 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.PropertyAccessorread in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionpublic 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.PropertyAccessorcanWrite in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionpublic 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.PropertyAccessorwrite in class org.springframework.expression.spel.support.ReflectivePropertyAccessororg.springframework.expression.AccessExceptionpublic org.springframework.expression.PropertyAccessor createOptimalAccessor(org.springframework.expression.EvaluationContext evalContext,
java.lang.Object target,
java.lang.String name)
createOptimalAccessor in class org.springframework.expression.spel.support.ReflectivePropertyAccessor