org.codehaus.plexus.interpolation.object
public class FieldBasedObjectInterpolator extends Object implements ObjectInterpolator
Field Summary | |
---|---|
static Set | DEFAULT_BLACKLISTED_FIELD_NAMES |
static Set | DEFAULT_BLACKLISTED_PACKAGE_PREFIXES |
Constructor Summary | |
---|---|
FieldBasedObjectInterpolator()
Use the default settings for blacklisted fields and packages, where fields named 'parent' and classes in packages
starting with 'java' will not be interpolated. | |
FieldBasedObjectInterpolator(Set blacklistedFieldNames, Set blacklistedPackagePrefixes)
Use the given black-lists to limit the interpolation of fields and classes (by package).
|
Method Summary | |
---|---|
static void | clearCaches()
Clear out the Reflection caches kept for the most expensive operations encountered: field lookup and primitive
queries for fields. |
List | getWarnings()
Retrieve the List of warnings (ObjectInterpolationWarning
instances) generated during the last interpolation execution. |
boolean | hasWarnings()
Returns true if the last interpolation execution generated warnings. |
void | interpolate(Object target, Interpolator interpolator)
Using reflective field access and mutation, traverse the object graph from the given starting point and
interpolate any Strings found in that graph using the given Interpolator. |
void | interpolate(Object target, Interpolator interpolator, RecursionInterceptor recursionInterceptor)
Using reflective field access and mutation, traverse the object graph from the given starting point and
interpolate any Strings found in that graph using the given Interpolator. |
Parameters: blacklistedFieldNames The list of field names to ignore blacklistedPackagePrefixes The list of package prefixes whose classes should be ignored
Parameters: target The starting point of the object graph to traverse interpolator The Interpolator used to resolve any Strings encountered during traversal. NOTE: Uses SimpleRecursionInterceptor.
Parameters: target The starting point of the object graph to traverse interpolator The Interpolator used to resolve any Strings encountered during traversal. recursionInterceptor The RecursionInterceptor used to detect cyclical expressions in the graph