public class MessagePartitionKeyPropertyAccessor extends 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 |
ReflectivePropertyAccessor.OptimalPropertyAccessor| Constructor and Description |
|---|
MessagePartitionKeyPropertyAccessor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(EvaluationContext context,
Object target,
String name) |
boolean |
canWrite(EvaluationContext context,
Object target,
String name) |
PropertyAccessor |
createOptimalAccessor(EvaluationContext evalContext,
Object target,
String name) |
Class<?>[] |
getSpecificTargetClasses() |
TypedValue |
read(EvaluationContext context,
Object target,
String name) |
void |
write(EvaluationContext context,
Object target,
String name,
Object newValue) |
findField, findGetterForProperty, findSetterForProperty, getLastReadInvokerPair, getPropertyMethodSuffix, getPropertyMethodSuffixespublic Class<?>[] getSpecificTargetClasses()
getSpecificTargetClasses in interface PropertyAccessorgetSpecificTargetClasses in class ReflectivePropertyAccessorpublic boolean canRead(EvaluationContext context, Object target, String name) throws AccessException
canRead in interface PropertyAccessorcanRead in class ReflectivePropertyAccessorAccessExceptionpublic TypedValue read(EvaluationContext context, Object target, String name) throws AccessException
read in interface PropertyAccessorread in class ReflectivePropertyAccessorAccessExceptionpublic boolean canWrite(EvaluationContext context, Object target, String name) throws AccessException
canWrite in interface PropertyAccessorcanWrite in class ReflectivePropertyAccessorAccessExceptionpublic void write(EvaluationContext context, Object target, String name, Object newValue) throws AccessException
write in interface PropertyAccessorwrite in class ReflectivePropertyAccessorAccessExceptionpublic PropertyAccessor createOptimalAccessor(EvaluationContext evalContext, Object target, String name)
createOptimalAccessor in class ReflectivePropertyAccessor