站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

ResourceBundles - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.portlet.plugins.language
Class ResourceBundles

java.lang.Object
  extended byorg.jboss.portal.portlet.plugins.language.ResourceBundles

public class ResourceBundles
extends java.lang.Object


Constructor Summary
ResourceBundles()
           
 
Method Summary
 java.util.ResourceBundle get(java.util.Locale locale)
          Return a bundle for the given locale.
 java.util.ResourceBundle getDefaultBundle()
          The default bundle.
 java.lang.ClassLoader getLoader()
           
 LanguagesMetaData getMetadata()
           
 void setLoader(java.lang.ClassLoader loader)
           
 void setMetadata(LanguagesMetaData metadata)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundles

public ResourceBundles()
Method Detail

getLoader

public java.lang.ClassLoader getLoader()

setLoader

public void setLoader(java.lang.ClassLoader loader)

getMetadata

public LanguagesMetaData getMetadata()

setMetadata

public void setMetadata(LanguagesMetaData metadata)

start

public void start()

stop

public void stop()

getDefaultBundle

public java.util.ResourceBundle getDefaultBundle()
The default bundle.


get

public java.util.ResourceBundle get(java.util.Locale locale)
                             throws java.lang.IllegalArgumentException
Return a bundle for the given locale. If the complete locale (language + country + variant) does not exist then it falls back to (language + country) or (language) or the default file. When the resource bundle object is found and was not in the global map, it put it in that map with a copy on write.

Throws:
java.lang.IllegalArgumentException - if the locale is null