org.apache.cocoon.components.variables
Class PreparedVariableResolver

java.lang.Object
  extended by org.apache.cocoon.components.variables.NOPVariableResolver
      extended by 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

Field Summary
protected  Context context
           
protected  List items
           
protected  ServiceManager manager
           
protected  ServiceSelector selector
           
 
Fields inherited from class org.apache.cocoon.components.variables.NOPVariableResolver
expression
 
Constructor Summary
PreparedVariableResolver(String expr, ServiceManager manager, Context context)
           
 
Method Summary
protected  void addLiteral(String litteral)
           
protected  void addModuleVariable(String moduleName, String variable)
           
 void dispose()
           
 String resolve()
          Resolve all {...} patterns .
 
Methods inherited from class org.apache.cocoon.components.variables.NOPVariableResolver
unescape
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

manager

protected ServiceManager manager

selector

protected ServiceSelector selector

context

protected Context context

items

protected List items
Constructor Detail

PreparedVariableResolver

public PreparedVariableResolver(String expr,
                                ServiceManager manager,
                                Context context)
                         throws PatternException
Throws:
PatternException
Method Detail

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.