|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecursionInterceptor
Logs expressions before resolution is attempted, and clears them after resolution is complete (or, fails all strategies). In between, if the value of an expression contains more expressions, RecursionInterceptor implementations ensure that those expressions don't reference an expression which is in the process of being resolved. If that happens, the expression references are cyclical, and would othewise result in an infinite loop.
Method Summary | |
---|---|
void |
expressionResolutionFinished(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(String expression)
Log the intention to start resolving the given expression. |
List |
getExpressionCycle(String expression)
|
boolean |
hasRecursiveExpression(String value)
Check whether the given value contains an expression that is currently being tracked by this interceptor. |
Method Detail |
---|
void expressionResolutionStarted(String expression)
expression
- The expression to be resolved.void expressionResolutionFinished(String expression)
expression
- The expression to stop tracking.boolean hasRecursiveExpression(String value)
value
- The value to check for expression cycles.
List getExpressionCycle(String expression)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |