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 Object
implements ResourceManager


Nested Class Summary
static class ResourceManagerImpl.CachedString
           
static class ResourceManagerImpl.CacheKey
           
 
Constructor Summary
ResourceManagerImpl(TobagoConfig tobagoConfig)
           
 
Method Summary
 void add(String resourceKey)
           
 void add(String resourceKey, String value)
           
 String getImage(UIViewRoot viewRoot, String name)
           
 String getImage(UIViewRoot viewRoot, String name, boolean ignoreMissing)
           
 String getJsp(UIViewRoot viewRoot, String name)
           
 String getProperty(UIViewRoot viewRoot, String bundle, String propertyKey)
           
 Renderer getRenderer(UIViewRoot viewRoot, String name)
           
static ResourceManagerImpl.CacheKey getRendererCacheKey(String clientPropertyId, Locale locale)
           
 String[] getScripts(UIViewRoot viewRoot, String name)
           
 String[] getStyles(UIViewRoot viewRoot, String name)
           
 String getThemeProperty(UIViewRoot viewRoot, String bundle, 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(String resourceKey)

add

public void add(String resourceKey,
                String value)

getImage

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

getImage

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

getJsp

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

getProperty

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

getRenderer

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

getScripts

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

getStyles

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

getThemeProperty

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

getRendererCacheKey

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


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.