Class Messages
java.lang.Object
org.jboss.logging.Messages
A factory class to produce message bundle implementations.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TDeprecated, for removal: This API element is subject to removal in a future version.static <T> TDeprecated, for removal: This API element is subject to removal in a future version.UsegetBundle(Lookup,Class,Locale)instead to avoid errors in modular environments.static <T> TgetBundle(MethodHandles.Lookup lookup, Class<T> type) Get a message bundle of the given type.static <T> TgetBundle(MethodHandles.Lookup lookup, Class<T> type, Locale locale) Get a message bundle of the given type.
-
Method Details
-
getBundle
Deprecated, for removal: This API element is subject to removal in a future version.UsegetBundle(Lookup,Class)instead to avoid errors in modular environments.Get a message bundle of the given type. Equivalent to.getBundle(type, Locale.getDefault())- Type Parameters:
T- the bundle type- Parameters:
type- the bundle type class- Returns:
- the bundle
-
getBundle
@Deprecated(forRemoval=true, since="3.6") public static <T> T getBundle(Class<T> type, Locale locale) Deprecated, for removal: This API element is subject to removal in a future version.UsegetBundle(Lookup,Class,Locale)instead to avoid errors in modular environments.Get a message bundle of the given type.- Type Parameters:
T- the bundle type- Parameters:
type- the bundle type classlocale- the message locale to use- Returns:
- the bundle
-
getBundle
-
getBundle
Get a message bundle of the given type.- Type Parameters:
T- the bundle type- Parameters:
lookup- a lookup which has access to the implementation class (usuallylookup())type- the bundle type classlocale- the message locale to use- Returns:
- the bundle
-
getBundle(Lookup,Class)instead to avoid errors in modular environments.