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 java.lang.Object
implements I18NResource


Field Summary
static org.apache.log4j.Category log
           
protected  com.atlassian.plugin.PluginAccessor pluginAccessor
           
 
Constructor Summary
protected AbstractI18NResource(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 java.util.ResourceBundle getBundle()
           
 java.util.ResourceBundle getBundle(java.lang.String localeString)
           
protected abstract  java.lang.String getResourcePath(java.lang.String localeString)
           
protected  java.util.ResourceBundle loadBundle(java.lang.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

pluginAccessor

protected com.atlassian.plugin.PluginAccessor pluginAccessor
Constructor Detail

AbstractI18NResource

protected AbstractI18NResource(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getBundle

public java.util.ResourceBundle getBundle()
Specified by:
getBundle in interface I18NResource

getBundle

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

loadBundle

protected java.util.ResourceBundle loadBundle(java.lang.String resourcePath)

getResourcePath

protected abstract java.lang.String getResourcePath(java.lang.String localeString)


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.