Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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`

Constructor Summary
`Messages()`

Method Summary
`protected Map` | `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 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD