|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.interpolation.SimpleRecursionInterceptor
public class SimpleRecursionInterceptor
Simplest implementation of a RecursionInterceptor
, which checks whether
the existing interpolation effort is already attempting to resolve an exact
expression, but has not finished. This will not catch synonym expressions, as
are found in Maven (${project.build.directory}, ${pom.build.directory}, and
${build.directory} are synonyms).
Constructor Summary | |
---|---|
SimpleRecursionInterceptor()
|
Method Summary | |
---|---|
void |
expressionResolutionFinished(java.lang.String expression)
Signal to the interceptor that the all efforts to resolve the given expression have completed - whether successfully or not is irrelevant - and that the expression should not be tracked for recursion any longer. |
void |
expressionResolutionStarted(java.lang.String expression)
Log the intention to start resolving the given expression. |
java.util.List |
getExpressionCycle(java.lang.String expression)
When an expression is determined to be a recursive reference, this method returns the sublist of tracked expressions that participate in this cycle. |
boolean |
hasRecursiveExpression(java.lang.String expression)
Check whether the current expression is already present in the in-process stack. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleRecursionInterceptor()
Method Detail |
---|
public void expressionResolutionFinished(java.lang.String expression)
expressionResolutionFinished
in interface RecursionInterceptor
expression
- The expression to stop tracking.public void expressionResolutionStarted(java.lang.String expression)
expressionResolutionStarted
in interface RecursionInterceptor
expression
- The expression to be resolved.public boolean hasRecursiveExpression(java.lang.String expression)
hasRecursiveExpression
in interface RecursionInterceptor
expression
- The value to check for expression cycles.
public java.util.List getExpressionCycle(java.lang.String expression)
Collections.EMPTY_LIST
.
getExpressionCycle
in interface RecursionInterceptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |