Class CachingContext

  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
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

Constructor Detail


public CachingContext()
Method Detail


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.


protected abstract <T> T resolveActual(String var)


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

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