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 Class<T> type, final Locale locale)

public static <
the bundle type
T
>
T

Returns:

the bundle
getBundle
(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 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 Class<T> type, final Locale locale)
getBundleback to summary
public static <T> T getBundle(Class<T> type)

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

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

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

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