|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.testing.templateengine.engine.resolver.TestEngineTemplateResolver
public class TestEngineTemplateResolver
| Field Summary | |
|---|---|
static String |
TEST_TEMPLATE_CONVERSION_CHARSET
|
| Constructor Summary | |
|---|---|
TestEngineTemplateResolver()
|
|
| Method Summary | |
|---|---|
protected void |
checkInitialized()
Check the template resolver is initialized, and throw an exception if it is not. |
protected void |
checkNotInitialized()
Check the template resolver is not initialized, and throw an exception if it is. |
String |
getName()
Returns the name of the template resolver |
Integer |
getOrder()
Returns the order in which this template resolver will be asked to resolve templates as a part of the chain of resolvers configured into the template engine. |
void |
initialize()
Initialize this template resolver. |
protected void |
initializeSpecific()
Initialize specific aspects of a subclass. |
protected boolean |
isInitialized()
|
org.thymeleaf.templateresolver.TemplateResolution |
resolveTemplate(org.thymeleaf.TemplateProcessingParameters templateProcessingParameters)
|
void |
setName(String name)
Sets a new name for the Template Resolver. |
void |
setOrder(Integer order)
Sets a new order for the template engine in the chain. |
protected String |
unsafeGetName()
Uninitialized method meant only for use by subclasses. |
protected Integer |
unsafeGetOrder()
Unsynchronized method meant only for use by subclasses. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TEST_TEMPLATE_CONVERSION_CHARSET
| Constructor Detail |
|---|
public TestEngineTemplateResolver()
| Method Detail |
|---|
protected final boolean isInitialized()
public final void initialize()
Initialize this template resolver.
Once initialized the configuration parameters of this template resolvers cannot be changed.
Initialization is automatically triggered by the Template Engine before processing the first template.
initialize in interface org.thymeleaf.templateresolver.ITemplateResolverprotected void initializeSpecific()
Initialize specific aspects of a subclass. This method is called during initialization
of TemplateResolver (initialize()) and is meant for being overridden by subclasses.
protected final void checkNotInitialized()
Check the template resolver is not initialized, and throw an exception if it is.
Calling this method allows to protect calls to methods that change the configuration, ensuring the template resolver has not been initialized yet.
protected final void checkInitialized()
Check the template resolver is initialized, and throw an exception if it is not.
Calling this method allows to protect calls to methods that need the template resolver to be already initialized.
public String getName()
Returns the name of the template resolver
getName in interface org.thymeleaf.templateresolver.ITemplateResolverprotected String unsafeGetName()
Uninitialized method meant only for use by subclasses.
public void setName(String name)
Sets a new name for the Template Resolver.
name - the new namepublic Integer getOrder()
Returns the order in which this template resolver will be asked to resolve templates as a part of the chain of resolvers configured into the template engine.
Order should start with 1.
getOrder in interface org.thymeleaf.templateresolver.ITemplateResolverprotected Integer unsafeGetOrder()
Unsynchronized method meant only for use by subclasses.
public void setOrder(Integer order)
Sets a new order for the template engine in the chain. Order should start with 1.
order - the new order.public org.thymeleaf.templateresolver.TemplateResolution resolveTemplate(org.thymeleaf.TemplateProcessingParameters templateProcessingParameters)
resolveTemplate in interface org.thymeleaf.templateresolver.ITemplateResolver
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||