org.jamon
Interface TemplateReplacer
- All Known Implementing Classes:
- AbstractTemplateReplacer, FixedTemplateReplacer, IdentityTemplateReplacer
public interface TemplateReplacer
Possibly replaces proxy instances with proxy instances for replacement templates.
getReplacement
AbstractTemplateProxy getReplacement(AbstractTemplateProxy p_proxy,
java.lang.Object p_jamonContext)
- Get the replacement for a proxy. If the proxied template is not being replaced via a
<%replaces> tag in another template, simply return
p_proxy
. Otherwise, create the
appropriate replacement proxy instance and call
AbstractTemplateProxy.ImplDataCompatible.populateFrom(org.jamon.AbstractTemplateProxy.ImplData)
on it's
implData instance.
- Parameters:
p_proxy
- the proxy to possibly replace.jamonContext
- the jamonContext if there is one, or null
otherwise.
- Returns:
p_proxy
or a proxy instance for a template replacing p_proxy's template.
jamon