org.jboss.seam.international
Class Messages

java.lang.Object
  extended by 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

Constructor Summary
Messages()
           
 
Method Summary
protected  Map<String,String> createMap()
           
 Map<String,String> getMessages()
          Create the Map and cache it in the EVENT scope.
static Map<String,String> instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages

public Messages()
Method Detail

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


Copyright © 2011 Seam Framework. All Rights Reserved.