org.apache.cocoon.components.variables
Class PreparedVariableResolver
java.lang.Object
org.apache.cocoon.components.variables.NOPVariableResolver
org.apache.cocoon.components.variables.PreparedVariableResolver
- All Implemented Interfaces:
- Disposable, VariableResolver
public class PreparedVariableResolver
- extends NOPVariableResolver
- implements Disposable
Prepared implementation of VariableResolver
for fast evaluation.
- Version:
- CVS $Id: PreparedVariableResolver.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Sylvain Wallez, Torsten Curdt, Carsten Ziegeler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
manager
protected ServiceManager manager
selector
protected ServiceSelector selector
context
protected Context context
items
protected List items
PreparedVariableResolver
public PreparedVariableResolver(String expr,
ServiceManager manager,
Context context)
throws PatternException
- Throws:
PatternException
addLiteral
protected void addLiteral(String litteral)
addModuleVariable
protected void addModuleVariable(String moduleName,
String variable)
throws PatternException
- Throws:
PatternException
resolve
public String resolve()
throws PatternException
- Description copied from interface:
VariableResolver
- Resolve all {...} patterns .
- Specified by:
resolve
in interface VariableResolver
- Overrides:
resolve
in class NOPVariableResolver
- Throws:
PatternException
dispose
public void dispose()
- Specified by:
dispose
in interface Disposable
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.