Top Description Constructors Methods
org.jboss.logging

public final Class Messages

extends Object
Class Inheritance
Static Imports
java.security.AccessController.doPrivileged

A factory class to produce message bundle implementations.
Author
David M. Lloyd

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static <T> T
doGetBundle(final MethodHandles.Lookup lookup, final Class<T> type, final Locale locale)

public static <
the bundle type
T
>
T

Returns:

the bundle
getBundle
(Class<T>
the bundle type class
type
)
Deprecated for removal since 3.6. Use getBundle(Lookup, Class) instead to avoid errors in modular environments.

Get a message bundle of the given type.

public static <
the bundle type
T
>
T

Returns:

the bundle
getBundle
(final Class<T>
the bundle type class
type
,
final Locale
the message locale to use
locale
)
Deprecated for removal since 3.6. Use getBundle(Lookup, Class, Locale) instead to avoid errors in modular environments.

Get a message bundle of the given type.

public static <
the bundle type
T
>
T

Returns:

the bundle
getBundle
(MethodHandles.Lookup
a lookup which has access to the implementation class (usually lookup())
lookup
,
Class<T>
the bundle type class
type
)

Get a message bundle of the given type.

public static <
the bundle type
T
>
T

Returns:

the bundle
getBundle
(final MethodHandles.Lookup
a lookup which has access to the implementation class (usually lookup())
lookup
,
final Class<T>
the bundle type class
type
,
final Locale
the message locale to use
locale
)

Get a message bundle of the given type.

private static String
join(String interfaceName, String a, String b, String c, String d)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Messagesback to summary
private Messages()

Method Detail

doGetBundleback to summary
private static <T> T doGetBundle(final MethodHandles.Lookup lookup, final Class<T> type, final Locale locale)
getBundleback to summary
public static <T> T getBundle(Class<T> type)

Deprecated

for removal since 3.6.

Use getBundle(Lookup, Class) instead to avoid errors in modular environments.

Get a message bundle of the given type. Equivalent to getBundle(type, Locale.getDefault()).

Parameters
<T>
the bundle type
type:Class<T>

the bundle type class

Returns:T

the bundle

Annotations
@Deprecated
forRemoval:true
since:3.6
getBundleback to summary
public static <T> T getBundle(final Class<T> type, final Locale locale)

Deprecated

for removal since 3.6.

Use getBundle(Lookup, Class, Locale) instead to avoid errors in modular environments.

Get a message bundle of the given type.

Parameters
<T>
the bundle type
type:Class<T>

the bundle type class

locale:Locale

the message locale to use

Returns:T

the bundle

Annotations
@Deprecated
forRemoval:true
since:3.6
getBundleback to summary
public static <T> T getBundle(MethodHandles.Lookup lookup, Class<T> type)

Get a message bundle of the given type. Equivalent to getBundle(type, Locale.getDefault()).

Parameters
<T>
the bundle type
lookup:MethodHandles.Lookup

a lookup which has access to the implementation class (usually lookup())

type:Class<T>

the bundle type class

Returns:T

the bundle

getBundleback to summary
public static <T> T getBundle(final MethodHandles.Lookup lookup, final Class<T> type, final Locale locale)

Get a message bundle of the given type.

Parameters
<T>
the bundle type
lookup:MethodHandles.Lookup

a lookup which has access to the implementation class (usually lookup())

type:Class<T>

the bundle type class

locale:Locale

the message locale to use

Returns:T

the bundle

joinback to summary
private static String join(String interfaceName, String a, String b, String c, String d)