| java.lang.Object org.apache.cocoon.components.treeprocessor.variables.VariableResolverFactory
VariableResolverFactory | public class VariableResolverFactory (Code) | | version: CVS $Id: VariableResolverFactory.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public static VariableResolver | getResolver(String expression, ComponentManager manager) Get a resolver for a given expression. | public static VariableResolver | getResolver(String expression, ServiceManager manager) Get a resolver for a given expression. | public static boolean | needsResolve(String expression) Does an expression need resolving (i.e. | public static void | setDisposableCollector(List collector) Set the thread-local list where all created resolvers that need to be
disposed will be collected. | public static String | unescape(String expression) Unescape an expression that doesn't need to be resolved, but may contain
escaped '{' characters.
Parameters: expression - the expression to unescape. |
getResolver | public static VariableResolver getResolver(String expression, ComponentManager manager) throws PatternException(Code) | | Get a resolver for a given expression. Chooses the most efficient implementation
depending on expression .
|
getResolver | public static VariableResolver getResolver(String expression, ServiceManager manager) throws PatternException(Code) | | Get a resolver for a given expression. Chooses the most efficient implementation
depending on expression .
|
needsResolve | public static boolean needsResolve(String expression)(Code) | | Does an expression need resolving (i.e. contain {...} patterns) ?
|
setDisposableCollector | public static void setDisposableCollector(List collector)(Code) | | Set the thread-local list where all created resolvers that need to be
disposed will be collected.
The purpose of collecting resolvers is to avoid manual release (or lack thereof)
that requires most ProcessingNodes to implement Disposable .
|
unescape | public static String unescape(String expression)(Code) | | Unescape an expression that doesn't need to be resolved, but may contain
escaped '{' characters.
Parameters: expression - the expression to unescape. the unescaped result, or expression if unescaping isn't necessary. |
|
|