mazz.i18n.annotation
Annotation Type I18NResourceBundle


@Documented
@Retention(value=RUNTIME)
@Target(value={TYPE,FIELD})
public @interface I18NResourceBundle

An annotation that declares a resource bundle. The resource bundle's base name is defined by an annotation attribute. A default locale is also defined by an optional attribute - this denotes the locale for those I18N messages whose annotations do not define a locale attribute. This default locale is only applicable for those I18NMessage annotations within the same scope of this resource bundle annotation (that is, the default is only for the class or field that this annotation annotates). If the default locale is not specified, the annotation processor should choose an appropriate default (such as the default locale of the JVM).

Author:
John Mazzitelli

Optional Element Summary
 java.lang.String baseName
          The resource bundle's base name (for example, if the resource bundle file name is to be "messages_en.properties", the resource bundle base name is "messages").
 java.lang.String defaultLocale
          Defines the default locale of all I18N messages within the scope of this resource bundle.
 

baseName

public abstract java.lang.String baseName
The resource bundle's base name (for example, if the resource bundle file name is to be "messages_en.properties", the resource bundle base name is "messages").

Default:
"messages"

defaultLocale

public abstract java.lang.String defaultLocale
Defines the default locale of all I18N messages within the scope of this resource bundle.

Default:
""


Copyright © 2006 John J. Mazzitelli All Rights Reserved. Licensed under LGPL