org.apache.myfaces.trinidadinternal.resource
Class TranslationsResourceLoader

java.lang.Object
  extended by org.apache.myfaces.trinidad.resource.ResourceLoader
      extended by org.apache.myfaces.trinidad.resource.DynamicResourceLoader
          extended by org.apache.myfaces.trinidad.resource.StringContentResourceLoader
              extended by org.apache.myfaces.trinidadinternal.resource.TranslationsResourceLoader
Direct Known Subclasses:
TrTranslationsResourceLoader

public abstract class TranslationsResourceLoader
extends org.apache.myfaces.trinidad.resource.StringContentResourceLoader


Constructor Summary
TranslationsResourceLoader(java.lang.String path)
          Constructs a dynamic resouce loader for this path which serves up translations.
 
Method Summary
protected  java.net.URL findResource(java.lang.String path)
           
protected abstract  java.lang.String getBundleName()
           
protected  java.lang.String getContentType(java.lang.String path)
           
protected  int getDefaultSize()
          Override to increase the default size of the buffer.
protected abstract  java.lang.String getJSVarName()
           
protected  java.lang.String getLocaleString(javax.faces.context.FacesContext context)
           
protected  org.apache.myfaces.trinidad.skin.Skin getSkin(javax.faces.context.FacesContext context)
           
protected  java.lang.String getString(java.lang.String path)
           
 
Methods inherited from class org.apache.myfaces.trinidad.resource.StringContentResourceLoader
getURL
 
Methods inherited from class org.apache.myfaces.trinidad.resource.ResourceLoader
getContentType, getNullResourceLoader, getParent, getResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslationsResourceLoader

public TranslationsResourceLoader(java.lang.String path)
Constructs a dynamic resouce loader for this path which serves up translations.

Parameters:
path - the path of this dynamic resource loader
Method Detail

getJSVarName

protected abstract java.lang.String getJSVarName()

getBundleName

protected abstract java.lang.String getBundleName()

getDefaultSize

protected int getDefaultSize()
Override to increase the default size of the buffer.


getLocaleString

protected java.lang.String getLocaleString(javax.faces.context.FacesContext context)

getContentType

protected java.lang.String getContentType(java.lang.String path)
Overrides:
getContentType in class org.apache.myfaces.trinidad.resource.StringContentResourceLoader

findResource

protected java.net.URL findResource(java.lang.String path)
                             throws java.io.IOException
Overrides:
findResource in class org.apache.myfaces.trinidad.resource.DynamicResourceLoader
Throws:
java.io.IOException

getString

protected java.lang.String getString(java.lang.String path)
                              throws java.io.IOException
Specified by:
getString in class org.apache.myfaces.trinidad.resource.StringContentResourceLoader
Throws:
java.io.IOException

getSkin

protected org.apache.myfaces.trinidad.skin.Skin getSkin(javax.faces.context.FacesContext context)


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.