com.atlassian.confluence.util.i18n
Class AbstractI18NResource

java.lang.Object
  extended by com.atlassian.confluence.util.i18n.AbstractI18NResource
All Implemented Interfaces:
I18NResource
Direct Known Subclasses:
LanguagePluginI18NResource, PluginI18NResource

public abstract class AbstractI18NResource
extends Object
implements I18NResource


Field Summary
static org.apache.log4j.Category log
           
protected  PluginManager pluginManager
           
 
Constructor Summary
protected AbstractI18NResource(PluginManager pluginManager)
           
 
Method Summary
 ResourceBundle getBundle()
           
 ResourceBundle getBundle(String localeString)
           
protected abstract  String getResourcePath(String localeString)
           
protected  ResourceBundle loadBundle(String resourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Category log

pluginManager

protected PluginManager pluginManager
Constructor Detail

AbstractI18NResource

protected AbstractI18NResource(PluginManager pluginManager)
Method Detail

getBundle

public ResourceBundle getBundle()
Specified by:
getBundle in interface I18NResource

getBundle

public ResourceBundle getBundle(String localeString)
Specified by:
getBundle in interface I18NResource
Returns:
a different locale version of the bundle mapped to this resource

loadBundle

protected ResourceBundle loadBundle(String resourcePath)

getResourcePath

protected abstract String getResourcePath(String localeString)


Confluence is developed by Atlassian.