public class MessageBundleService extends AbstractContexed implements AppContextService<MessageBundleService>
AppContextService that encodes the rules for generating the application
message bundle. The default is to use the bundle messages
this can be changed using the property messages.bundle.list which may specify multiple bundles via
a comma separated list.conn| Constructor and Description |
|---|
MessageBundleService(AppContext c) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
AppContext is being closed. |
java.util.ResourceBundle |
getBundle() |
java.util.ResourceBundle |
getBundle(java.lang.String tag) |
java.lang.Class<? super MessageBundleService> |
getType()
Returns the type of service the class should be registered under.
|
protected java.util.ResourceBundle |
makeBundle(java.lang.String tag) |
getContext, getLogger, resetLoggerpublic MessageBundleService(AppContext c)
public java.util.ResourceBundle getBundle()
public java.util.ResourceBundle getBundle(java.lang.String tag)
protected java.util.ResourceBundle makeBundle(java.lang.String tag)
public void cleanup()
AppContextCleanupAppContext is being closed.
Only use this for cleanup that can't be handled by
normal garbage collection or for state which is never returned by reference.cleanup in interface AppContextCleanuppublic java.lang.Class<? super MessageBundleService> getType()
AppContextServicegetType in interface AppContextService<MessageBundleService>