org.jboss.portal.common.i18n
Interface ResourceBundleFactory

All Known Implementing Classes:
ComplexResourceBundleFactory, MetaDataResourceBundleFactory, PortletResourceBundleFactory, SimpleResourceBundleFactory

public interface ResourceBundleFactory

Definition of a factory for resource bundles.

Version:
$Revision: 7228 $
Author:
Julien Viet

Method Summary
 java.util.ResourceBundle getBundle(java.util.Locale locale)
          Returns a resource bundle for the specified locale, it may be an expensive operation.
 

Method Detail

getBundle

java.util.ResourceBundle getBundle(java.util.Locale locale)
                                   throws java.lang.IllegalArgumentException
Returns a resource bundle for the specified locale, it may be an expensive operation.

Parameters:
locale - the locale for the resource bundle
Returns:
a resource bundle for the locale or null if no such bundle can be obtained
Throws:
java.lang.IllegalArgumentException - if the locale is null