org.apache.jetspeed.administration
Class PortalConfigurationImpl

java.lang.Object
  extended by org.apache.jetspeed.administration.PortalConfigurationImpl
All Implemented Interfaces:
org.apache.jetspeed.administration.PortalConfiguration

public class PortalConfigurationImpl
extends Object
implements org.apache.jetspeed.administration.PortalConfiguration

Portal Configuration Retrieve basic data types from the jetspeed.properties configuration This is a subset of Commons Configuration functionality Not the best solution wrappering commons configuration, but it does continue with the requirements of interface-driven development and zero dependencies in API

Version:
$Id: $
Author:
David Sean Taylor

Field Summary
(package private)  org.apache.commons.configuration.Configuration configuration
           
 
Constructor Summary
PortalConfigurationImpl(org.apache.commons.configuration.Configuration configuration)
           
 
Method Summary
 boolean getBoolean(String key)
           
 boolean getBoolean(String key, boolean defaultValue)
           
 double getDouble(String key)
           
 double getDouble(String key, double defaultValue)
           
 float getFloat(String key)
           
 float getFloat(String key, float defaultValue)
           
 int getInt(String key)
           
 int getInt(String key, int defaultValue)
           
 Iterator getKeys()
           
 List getList(String key)
           
 long getLong(String key)
           
 long getLong(String key, long defaultValue)
           
 String getString(String key)
           
 String getString(String key, String defaultValue)
           
 String[] getStringArray(String key)
           
 void setString(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

org.apache.commons.configuration.Configuration configuration
Constructor Detail

PortalConfigurationImpl

public PortalConfigurationImpl(org.apache.commons.configuration.Configuration configuration)
Method Detail

getBoolean

public boolean getBoolean(String key,
                          boolean defaultValue)
Specified by:
getBoolean in interface org.apache.jetspeed.administration.PortalConfiguration

getBoolean

public boolean getBoolean(String key)
Specified by:
getBoolean in interface org.apache.jetspeed.administration.PortalConfiguration

getDouble

public double getDouble(String key,
                        double defaultValue)
Specified by:
getDouble in interface org.apache.jetspeed.administration.PortalConfiguration

getDouble

public double getDouble(String key)
Specified by:
getDouble in interface org.apache.jetspeed.administration.PortalConfiguration

getFloat

public float getFloat(String key,
                      float defaultValue)
Specified by:
getFloat in interface org.apache.jetspeed.administration.PortalConfiguration

getFloat

public float getFloat(String key)
Specified by:
getFloat in interface org.apache.jetspeed.administration.PortalConfiguration

getInt

public int getInt(String key,
                  int defaultValue)
Specified by:
getInt in interface org.apache.jetspeed.administration.PortalConfiguration

getInt

public int getInt(String key)
Specified by:
getInt in interface org.apache.jetspeed.administration.PortalConfiguration

getList

public List getList(String key)
Specified by:
getList in interface org.apache.jetspeed.administration.PortalConfiguration

getLong

public long getLong(String key,
                    long defaultValue)
Specified by:
getLong in interface org.apache.jetspeed.administration.PortalConfiguration

getLong

public long getLong(String key)
Specified by:
getLong in interface org.apache.jetspeed.administration.PortalConfiguration

getString

public String getString(String key,
                        String defaultValue)
Specified by:
getString in interface org.apache.jetspeed.administration.PortalConfiguration

getString

public String getString(String key)
Specified by:
getString in interface org.apache.jetspeed.administration.PortalConfiguration

getStringArray

public String[] getStringArray(String key)
Specified by:
getStringArray in interface org.apache.jetspeed.administration.PortalConfiguration

getKeys

public Iterator getKeys()
Specified by:
getKeys in interface org.apache.jetspeed.administration.PortalConfiguration

setString

public void setString(String key,
                      String value)
Specified by:
setString in interface org.apache.jetspeed.administration.PortalConfiguration


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