Package org.thymeleaf.messageresolver
Class AbstractMessageResolver
- Object
-
- org.thymeleaf.messageresolver.AbstractMessageResolver
-
- All Implemented Interfaces:
IMessageResolver
- Direct Known Subclasses:
StandardMessageResolver
public abstract class AbstractMessageResolver extends Object implements IMessageResolver
Base abstract implementation for message resolvers implementing the
IMessageResolver
interface.- Since:
- 1.0
- Author:
- Daniel Fernández
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMessageResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
setName(String name)
Sets a name for this message resolver.void
setOrder(Integer order)
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
-
-
-
-
Method Detail
-
getName
public final String 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
public void setName(String name)
Sets a name for this message resolver.
- Parameters:
name
- the new name
-
getOrder
public final Integer 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
public void setOrder(Integer order)
Sets a new order for the message resolver.
- Parameters:
order
- the new order
-
-