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, resetLogger
public 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()
AppContextCleanup
AppContext
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 AppContextCleanup
public java.lang.Class<? super MessageBundleService> getType()
AppContextService
getType
in interface AppContextService<MessageBundleService>