public class ObjectBasedValueSource extends Object implements FixedValueSource
| Constructor and Description |
|---|
ObjectBasedValueSource(Object root)
Construct a new value source, using the supplied object as the root from
which to start, and using expressions split at the dot ('.') to navigate
the object graph beneath this root.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getValue(String expression,
InterpolationState interpolationState)
Split the expression into parts, tokenized on the dot ('.') character.
|
public ObjectBasedValueSource(Object root)
root - The root of the graph.public Object getValue(String expression, InterpolationState interpolationState)
NOTE: The object-graph nagivation actually takes place via the
ReflectionValueExtractor class.
getValue in interface FixedValueSourceexpression - The expression.interpolationState - InterpolationState.Copyright © 2001–2019 Codehaus Plexus. All rights reserved.