public class MultiMessages extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addApplicativeKey(String key,
String value) |
static boolean |
addAssociatedBundle(Object object)
Adds the associated bundle.
|
static boolean |
addBundle(String name)
Adds the bundle.
|
static void |
addProvider(MessageProvider provider)
Adds the provider.
|
static String |
get(String key,
String... args)
Get a message from its key.
|
static ResourceBundle |
getBundle(Class<?> object)
Gets the bundle.
|
static ResourceBundle |
getBundle(Object object)
Gets the bundle.
|
static ResourceBundle |
getBundle(String path)
Gets the bundle.
|
static void |
removeApplicativeKey(String key) |
static void |
setDefaultBundle(String name)
Sets the default bundle.
|
static void |
setFirstBundle(String name)
Sets the first bundle.
|
public static void removeApplicativeKey(String key)
public static boolean addAssociatedBundle(Object object)
object - the objectpublic static boolean addBundle(String name)
name - the bundle path and namepublic static void addProvider(MessageProvider provider)
provider - the providerpublic static void setFirstBundle(String name)
name - the new first bundlepublic static void setDefaultBundle(String name)
name - the new default bundlepublic static ResourceBundle getBundle(Object object) throws MissingResourceException
object - the objectMissingResourceException - the missing resource exceptionpublic static ResourceBundle getBundle(Class<?> object) throws MissingResourceException
object - the objectMissingResourceException - the missing resource exceptionpublic static ResourceBundle getBundle(String path) throws MissingResourceException
path - the pathMissingResourceException - the missing resource exceptionCopyright © 2020 Alantea. All rights reserved.