org.jboss.seam.international
Class Messages
java.lang.Object
org.jboss.seam.international.Messages
@Scope(value=STATELESS)
@BypassInterceptors
@Name(value="org.jboss.seam.international.messagesFactory")
@Install(precedence=0)
public class Messages
- extends Object
Factory for a Map that contains interpolated messages defined in the Seam
ResourceBundle.
- Author:
- Gavin King
- See Also:
SeamResourceBundle
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Messages
public Messages()
createMap
protected Map<String,String> createMap()
getMessages
@Factory(value="org.jboss.seam.international.messages",
autoCreate=true,
scope=EVENT)
public Map<String,String> getMessages()
- Create the Map and cache it in the EVENT scope. No need to cache it in
the SESSION scope, since it is inexpensive to create.
- Returns:
- a Map that interpolates messages in the Seam ResourceBundle
instance
public static Map<String,String> instance()
- Returns:
- the message Map instance