Package org.apache.juneau.cp
Class Messages.Builder
- Enclosing class:
- Messages
Builder class.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionSpecifies the base name patterns to use for finding the resource bundle.protected MessagesCreates the bean when the bean type isnull or is the default value.Overrides the bean returned by theBeanBuilder.build()method.Specifies the locale.Specifies the locale.Specifies a location of where to look for messages.Specifies a location of where to look for messages.Specifies the bundle name (e.g.Adds a parent bundle.Overrides the bean type produced by theBeanBuilder.build()method.
- 
Constructor Details- 
BuilderConstructor.- Parameters:
- forClass- The base class.
 
 
- 
- 
Method Details- 
buildDefaultDescription copied from class:BeanBuilderCreates the bean when the bean type isnull or is the default value.- Overrides:
- buildDefaultin class- BeanBuilder<Messages>
- Returns:
- A new bean.
 
- 
parentAdds a parent bundle.- Parameters:
- parent- The parent bundle. Can be- null .
- Returns:
- This object.
 
- 
nameSpecifies the bundle name (e.g."Messages" ).- Parameters:
- name- The bundle name.
 If- null , the forClass class name is used.
- Returns:
- This object.
 
- 
baseNamesSpecifies the base name patterns to use for finding the resource bundle.- Parameters:
- baseNames- The bundle base names.
 The default is the following:- "{package}.{name}" 
- "{package}.i18n.{name}" 
- "{package}.nls.{name}" 
- "{package}.messages.{name}" 
 
- Returns:
- This object.
 
- 
localeSpecifies the locale.- Parameters:
- locale- The locale. If- null , the default locale is used.
- Returns:
- This object.
 
- 
localeSpecifies the locale.- Parameters:
- locale- The locale. If- null , the default locale is used.
- Returns:
- This object.
 
- 
locationSpecifies a location of where to look for messages.- Parameters:
- baseClass- The base class.
- bundlePath- The bundle path.
- Returns:
- This object.
 
- 
locationSpecifies a location of where to look for messages.- Parameters:
- bundlePath- The bundle path.
- Returns:
- This object.
 
- 
implDescription copied from class:BeanBuilderOverrides the bean returned by theBeanBuilder.build()method.Use this method if you want this builder to return an already-instantiated bean. - Overrides:
- implin class- BeanBuilder<Messages>
- Parameters:
- value- The setting value.
- Returns:
- This object.
 
- 
typeDescription copied from class:BeanBuilderOverrides the bean type produced by theBeanBuilder.build()method.Use this method if you want to instantiated a bean subclass. - Overrides:
- typein class- BeanBuilder<Messages>
- Parameters:
- value- The setting value.
- Returns:
- This object.
 
 
-