com.rhi.architecture.config
Class ConfigFacility

java.lang.Object
  extended bycom.rhi.architecture.config.ConfigFacility
All Implemented Interfaces:
Resource

public class ConfigFacility
extends java.lang.Object
implements Resource

Provide access to the application configuration information for any calling class.

Since:
1.0
Author:
Pete McKinstry

Field Summary
static java.lang.String KEY
          The key used by the ResourceContext to look for & store the configuration facility.
 
Constructor Summary
ConfigFacility()
          Default Constructor
 
Method Summary
 void close()
          Cleanup the object pool that provides the connections.
 java.util.Properties getProperties()
          Returns a copy of the application configuration information.
 java.lang.String getProperty(java.lang.String key)
          Returns the property w/ the specified key.
 void init(java.util.Properties p)
          Initialization of the ConfigFacility basically caches the properties provided during init() & returns them to the caller later.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.String KEY
The key used by the ResourceContext to look for & store the configuration facility.

See Also:
Constant Field Values
Constructor Detail

ConfigFacility

public ConfigFacility()
Default Constructor

Since:
1.0
Method Detail

init

public void init(java.util.Properties p)
Initialization of the ConfigFacility basically caches the properties provided during init() & returns them to the caller later. Simplest possible facility.

Specified by:
init in interface Resource
Parameters:
p -
Since:
1.1

getProperties

public java.util.Properties getProperties()
                                   throws ConfigurationException
Returns a copy of the application configuration information.

Returns:
java.util.Properties
Throws:
ConfigurationException
Since:
1.0

getProperty

public java.lang.String getProperty(java.lang.String key)
Returns the property w/ the specified key.

Parameters:
key -
Returns:
Since:
1.0

close

public void close()
Cleanup the object pool that provides the connections.

Specified by:
close in interface Resource
Since:
1.0


Copyright © 2002-2004 Robert Half International. All Rights Reserved.