org.apache.myfaces.tobago.context
Class ResourceManagerImpl

java.lang.Object
  extended by org.apache.myfaces.tobago.context.ResourceManagerImpl
All Implemented Interfaces:
ResourceManager

public class ResourceManagerImpl
extends java.lang.Object
implements ResourceManager


Nested Class Summary
static class ResourceManagerImpl.CachedString
           
static class ResourceManagerImpl.CacheKey
           
 
Constructor Summary
ResourceManagerImpl(TobagoConfig tobagoConfig)
           
 
Method Summary
 void add(java.lang.String resourceKey)
           
 void add(java.lang.String resourceKey, java.lang.String value)
           
 java.lang.String getImage(UIViewRoot viewRoot, java.lang.String name)
           
 java.lang.String getImage(UIViewRoot viewRoot, java.lang.String name, boolean ignoreMissing)
           
 java.lang.String getJsp(UIViewRoot viewRoot, java.lang.String name)
           
 java.lang.String getProperty(UIViewRoot viewRoot, java.lang.String bundle, java.lang.String propertyKey)
           
 Renderer getRenderer(UIViewRoot viewRoot, java.lang.String name)
           
static ResourceManagerImpl.CacheKey getRendererCacheKey(java.lang.String clientPropertyId, java.util.Locale locale)
           
 java.lang.String[] getScripts(UIViewRoot viewRoot, java.lang.String name)
           
 java.lang.String[] getStyles(UIViewRoot viewRoot, java.lang.String name)
           
 java.lang.String getThemeProperty(UIViewRoot viewRoot, java.lang.String bundle, java.lang.String propertyKey)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManagerImpl

public ResourceManagerImpl(TobagoConfig tobagoConfig)
Method Detail

add

public void add(java.lang.String resourceKey)

add

public void add(java.lang.String resourceKey,
                java.lang.String value)

getImage

public java.lang.String getImage(UIViewRoot viewRoot,
                                 java.lang.String name)
Specified by:
getImage in interface ResourceManager

getImage

public java.lang.String getImage(UIViewRoot viewRoot,
                                 java.lang.String name,
                                 boolean ignoreMissing)
Specified by:
getImage in interface ResourceManager

getJsp

public java.lang.String getJsp(UIViewRoot viewRoot,
                               java.lang.String name)
Specified by:
getJsp in interface ResourceManager

getProperty

public java.lang.String getProperty(UIViewRoot viewRoot,
                                    java.lang.String bundle,
                                    java.lang.String propertyKey)
Specified by:
getProperty in interface ResourceManager

getRenderer

public Renderer getRenderer(UIViewRoot viewRoot,
                            java.lang.String name)
Specified by:
getRenderer in interface ResourceManager

getScripts

public java.lang.String[] getScripts(UIViewRoot viewRoot,
                                     java.lang.String name)
Specified by:
getScripts in interface ResourceManager

getStyles

public java.lang.String[] getStyles(UIViewRoot viewRoot,
                                    java.lang.String name)
Specified by:
getStyles in interface ResourceManager

getThemeProperty

public java.lang.String getThemeProperty(UIViewRoot viewRoot,
                                         java.lang.String bundle,
                                         java.lang.String propertyKey)
Specified by:
getThemeProperty in interface ResourceManager

getRendererCacheKey

public static ResourceManagerImpl.CacheKey getRendererCacheKey(java.lang.String clientPropertyId,
                                                               java.util.Locale locale)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.