Package org.thymeleaf.messageresolver
Class AbstractMessageResolver
Object
org.thymeleaf.messageresolver.AbstractMessageResolver
- All Implemented Interfaces:
IMessageResolver
- Direct Known Subclasses:
StandardMessageResolver
Base abstract implementation for message resolvers implementing the
IMessageResolver
interface.
- Since:
- 1.0
- Author:
- Daniel Fernández
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal String
getName()
Returns the name of the message resolver.final 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
Sets a name for this message resolver.void
Sets a new order for the message resolver.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.thymeleaf.messageresolver.IMessageResolver
createAbsentMessageRepresentation, resolveMessage
-
Constructor Details
-
AbstractMessageResolver
protected AbstractMessageResolver()
-
-
Method Details
-
getName
Description copied from interface:IMessageResolver
Returns the name of the message resolver.
- Specified by:
getName
in interfaceIMessageResolver
- Returns:
- the name of the message resolver
-
setName
Sets a name for this message resolver.
- Parameters:
name
- the new name
-
getOrder
Description copied from interface: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.
- Specified by:
getOrder
in interfaceIMessageResolver
- Returns:
- the order of this resolver in the chain.
-
setOrder
Sets a new order for the message resolver.
- Parameters:
order
- the new order
-