|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jamon.AbstractTemplateReplacer
org.jamon.FixedTemplateReplacer
public class FixedTemplateReplacer
A TemplateReplacer
which ignores any jamonContext
and replaces templates based on
a fixed list of template passed in at startup. While reflection is used when this class is
constructed, after that it is reflection-free.
Constructor Summary | |
---|---|
FixedTemplateReplacer(java.util.Collection<java.lang.Class<? extends AbstractTemplateProxy>> p_replacements)
Create a new instance. |
Method Summary | |
---|---|
protected 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. |
Methods inherited from class org.jamon.AbstractTemplateReplacer |
---|
getReplacement |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FixedTemplateReplacer(java.util.Collection<java.lang.Class<? extends AbstractTemplateProxy>> p_replacements)
p_replacements
- A collection of replacing template classes.
java.lang.IllegalArgumentException
- if any of the passed in classes do not correspond to
templates which replace another template, or if two replacing
templates replace the same template.Method Detail |
---|
protected AbstractTemplateProxy.ReplacementConstructor findReplacement(java.lang.Class<? extends AbstractTemplateProxy> p_proxyClass, java.lang.Object p_jamonContext)
AbstractTemplateReplacer
AbstractTemplateProxy.ReplacementConstructor
for a template, if
there is one.
findReplacement
in class AbstractTemplateReplacer
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 |