|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jamon.AbstractTemplateReplacer
public abstract class AbstractTemplateReplacer
A base class for classes wishing to define a TemplateReplacer.
Implementors need only define findReplacement(Class, Object)
| Constructor Summary | |
|---|---|
AbstractTemplateReplacer()
|
|
| Method Summary | |
|---|---|
protected abstract AbstractTemplateProxy.ReplacementConstructor |
findReplacement(java.lang.Class<? extends AbstractTemplateProxy> p_proxyClass,
java.lang.Object p_jamonContext)
Find an appropriate AbstractTemplateProxy.ReplacementConstructor for a template, if
there is one. |
AbstractTemplateProxy |
getReplacement(AbstractTemplateProxy p_proxy,
java.lang.Object p_jamonContext)
Get the replacement for a proxy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTemplateReplacer()
| Method Detail |
|---|
public AbstractTemplateProxy getReplacement(AbstractTemplateProxy p_proxy,
java.lang.Object p_jamonContext)
TemplateReplacerp_proxy. Otherwise, create the
appropriate replacement proxy instance and call
AbstractTemplateProxy.ImplDataCompatible.populateFrom(org.jamon.AbstractTemplateProxy.ImplData) on it's
implData instance.
getReplacement in interface TemplateReplacerp_proxy - the proxy to possibly replace.
p_proxy or a proxy instance for a template replacing p_proxy's template.
protected abstract AbstractTemplateProxy.ReplacementConstructor findReplacement(java.lang.Class<? extends AbstractTemplateProxy> p_proxyClass,
java.lang.Object p_jamonContext)
AbstractTemplateProxy.ReplacementConstructor for a template, if
there is one.
p_proxyClass - the class to find a replacement for.p_jamonContext - the jamonContext
ReplacementConstructor for the template which will
serve as a replacement, or null if there is to be no
replacement performed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||