org.sakaiproject.jsf.util
Class ConfigurationResource

java.lang.Object
  extended byorg.sakaiproject.jsf.util.ConfigurationResource

public class ConfigurationResource
extends Object

Thin wrapper for lookup of configuration of resources.

Version:
$Id: ConfigurationResource.java 597 2005-07-13 20:26:17Z janderse@umich.edu $
Author:
Ed Smiley

Constructor Summary
ConfigurationResource()
          Get resources for default locale.
ConfigurationResource(Locale locale)
          Get resources for specific locale.
 
Method Summary
 boolean exists(String key)
          Return true only if this key exists.
 String get(String key)
          Look up key/value
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationResource

public ConfigurationResource()
Get resources for default locale.


ConfigurationResource

public ConfigurationResource(Locale locale)
Get resources for specific locale.

Parameters:
locale - Locale
Method Detail

get

public String get(String key)
Look up key/value

Parameters:
key - String
Returns:
String value for key, or empty string if not found

exists

public boolean exists(String key)
Return true only if this key exists.

Parameters:
key - String
Returns:
boolean

main

public static void main(String[] args)