org.apache.abdera.i18n.templates
Class CachingContext

java.lang.Object
  extended by org.apache.abdera.i18n.templates.AbstractContext
      extended by org.apache.abdera.i18n.templates.CachingContext
All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Context
Direct Known Subclasses:
DelegatingContext, ObjectContext

public abstract class CachingContext
extends AbstractContext

Abstract Context implementation that caches resolved values so that do not have to be resolved again

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.abdera.i18n.templates.AbstractContext
iri, normalizing
 
Constructor Summary
CachingContext()
           
 
Method Summary
 void clear()
          Clear this context
<T> T
resolve(String var)
          Resolve a value for the specified variable.
protected abstract
<T> T
resolveActual(String var)
           
 
Methods inherited from class org.apache.abdera.i18n.templates.AbstractContext
isIri, isNormalizing, setIri, setNormalizing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

CachingContext

public CachingContext()
Method Detail

resolve

public <T> T resolve(String var)
Description copied from interface: Context
Resolve a value for the specified variable. The method can return either a String, an Array or a Collection.


resolveActual

protected abstract <T> T resolveActual(String var)

clear

public void clear()
Description copied from interface: Context
Clear this context



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.