de.smartics.exceptions.i18n.message
Class ClassPathBundleProvider

Package class diagram package ClassPathBundleProvider
java.lang.Object
  extended by de.smartics.exceptions.i18n.message.ClassPathBundleProvider
All Implemented Interfaces:
BundleProvider

public class ClassPathBundleProvider
     
     
extends Object
implements BundleProvider

Loads bundles from the class path.

Author:
Robert Reiner

Constructor Summary
ClassPathBundleProvider()
           
 
Method Summary
 ResourceBundle getBundle(Locale locale, ClassLoader loader, String bundleBaseName)
          Returns the requested bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPathBundleProvider

public ClassPathBundleProvider()
Method Detail

getBundle

public ResourceBundle getBundle(Locale locale,
                                ClassLoader loader,
                                String bundleBaseName)
                         throws MissingResourceException
Returns the requested bundle.

Specified by:
getBundle in interface BundleProvider
Parameters:
locale - the locale to select the localized information.
loader - the class loader to use.
bundleBaseName - the base name of the bundle to fetch.
Returns:
the requested bundle.
Throws:
MissingResourceException - if there is no suitable bundle with the given base name.
See Also:
BundleProvider.getBundle(java.util.Locale, java.lang.ClassLoader, java.lang.String)


Copyright © 2007-null Kronseder & Reiner GmbH - smartics. All Rights Reserved.