com.dtolabs.utils
Class PropertiesUtil.PrefixProducer

java.lang.Object
  extended by com.dtolabs.utils.PropertiesUtil.PrefixProducer
All Implemented Interfaces:
PropertiesUtil.Producer
Enclosing class:
PropertiesUtil

public static class PropertiesUtil.PrefixProducer
extends java.lang.Object
implements PropertiesUtil.Producer

A Producer that given an input set of properties and a specific prefix, produces another set of properties from all input properties that have that prefix and removes the prefix.


Constructor Summary
PropertiesUtil.PrefixProducer(java.util.Properties props, java.lang.String prefix)
           
 
Method Summary
 java.util.Properties readProperties()
          Produce the properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesUtil.PrefixProducer

public PropertiesUtil.PrefixProducer(java.util.Properties props,
                                     java.lang.String prefix)
Method Detail

readProperties

public java.util.Properties readProperties()
Description copied from interface: PropertiesUtil.Producer
Produce the properties.

Specified by:
readProperties in interface PropertiesUtil.Producer
Returns: