|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.messageresolver.AbstractMessageResolver
public abstract class AbstractMessageResolver
Base abstract implementation for message resolvers implementing the
IMessageResolver
interface.
Constructor Summary | |
---|---|
protected |
AbstractMessageResolver()
|
Method Summary | |
---|---|
protected void |
checkInitialized()
Check the message resolver is initialized, and throw an exception if it is not. |
protected void |
checkNotInitialized()
Check the message resolver is not initialized, and throw an exception if it is. |
String |
getName()
Returns the name of the message resolver. |
Integer |
getOrder()
Return the order in which this message resolver will be executed in the chain when several message resolvers are set for the same Template Engine. |
void |
initialize()
Initialize the Message Resolver. |
protected void |
initializeSpecific()
Initialize specific aspects of a subclass. |
protected boolean |
isInitialized()
|
void |
setName(String name)
Sets a name for this message resolver. |
void |
setOrder(Integer order)
Sets a new order for the message resolver. |
protected String |
unsafeGetName()
Uninitialized method meant only for use by subclasses. |
protected Integer |
unsafeGetOrder()
Uninitialized method meant only for use by subclasses. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.thymeleaf.messageresolver.IMessageResolver |
---|
resolveMessage |
Constructor Detail |
---|
protected AbstractMessageResolver()
Method Detail |
---|
protected final boolean isInitialized()
public final void initialize()
IMessageResolver
Initialize the Message Resolver. Once initialized, none of its configuration parameters should be allowed to change.
This method is called by TemplateEngine. Do not use directly in your code.
initialize
in interface IMessageResolver
protected 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 message 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 message resolver has not been initialized yet.
protected final void checkInitialized()
Check the message resolver is initialized, and throw an exception if it is not.
Calling this method allows to protect calls to methods that need the message resolver to be already initialized.
public final String getName()
IMessageResolver
Returns the name of the message resolver.
getName
in interface IMessageResolver
protected final String unsafeGetName()
Uninitialized method meant only for use by subclasses.
public void setName(String name)
Sets a name for this message resolver.
name
- the new namepublic final Integer getOrder()
IMessageResolver
Return the order in which this message resolver will be executed in the chain when several message resolvers are set for the same Template Engine.
getOrder
in interface IMessageResolver
protected final Integer unsafeGetOrder()
Uninitialized method meant only for use by subclasses.
public void setOrder(Integer order)
Sets a new order for the message resolver.
order
- the new order
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |