|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.click.service.DefaultMessagesMapService
public class DefaultMessagesMapService
Provides a default MessagesMapService which returns MessagesMap implementations of the messages map.
Constructor Summary | |
---|---|
DefaultMessagesMapService()
|
Method Summary | |
---|---|
Map<String,String> |
createMessagesMap(Class<?> baseClass,
String globalResource,
Locale locale)
Return a MessagesMap instance for the target baseClass, global resource name and locale. |
void |
onDestroy()
Destroy the MessagesMapService. |
void |
onInit(ServletContext servletContext)
Initialize the MessagesMapService with the given application servlet context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMessagesMapService()
Method Detail |
---|
public void onInit(ServletContext servletContext) throws Exception
MessagesMapService
onInit
in interface MessagesMapService
servletContext
- the application servlet context
Exception
- if an error occurs initializing the LogServiceMessagesMapService.onInit(ServletContext)
public void onDestroy()
MessagesMapService
onDestroy
in interface MessagesMapService
MessagesMapService.onDestroy()
public Map<String,String> createMessagesMap(Class<?> baseClass, String globalResource, Locale locale)
createMessagesMap
in interface MessagesMapService
baseClass
- the target classglobalResource
- the global resource bundle namelocale
- the users Locale
MessagesMapService.createMessagesMap(java.lang.Class, java.lang.String, java.util.Locale)
,
MessagesMap.MessagesMap(Class, String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |