com.rhi.architecture.batch
Class PropertiesConfigMixin

java.lang.Object
  extended bycom.rhi.architecture.batch.PropertiesConfigMixin
All Implemented Interfaces:
ConfigMixin

public class PropertiesConfigMixin
extends java.lang.Object
implements ConfigMixin

ConfigMixin implementation that uses Properties file for configuration.

Since:
1.0
Author:
Vaibhav Ranjangaonkar

Constructor Summary
PropertiesConfigMixin()
           
 
Method Summary
protected  java.lang.String getPropertyFileName(java.util.Properties p)
          Default implementation looks for .properties file in classpath.
 void loadConfiguration(java.util.Properties props)
          Retrieve property values & append them to the provided default application properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConfigMixin

public PropertiesConfigMixin()
Method Detail

loadConfiguration

public void loadConfiguration(java.util.Properties props)
                       throws InitializationException
Retrieve property values & append them to the provided default application properties. This provides an extensible mechanism for configuration information.

Specified by:
loadConfiguration in interface ConfigMixin
Parameters:
props -
Throws:
InitializationException
Since:
1.1

getPropertyFileName

protected java.lang.String getPropertyFileName(java.util.Properties p)
                                        throws InitializationException
Default implementation looks for .properties file in classpath. Override this method for changing this logic.

Parameters:
p - the already loaded configuration properties.
Returns:
The property file name to use.
Throws:
InitializationException


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