info.magnolia.init.properties
Class AbstractStreamBasedPropertySource

java.lang.Object
  extended by info.magnolia.init.properties.AbstractPropertySource
      extended by info.magnolia.init.properties.AbstractStreamBasedPropertySource
All Implemented Interfaces:
PropertySource
Direct Known Subclasses:
ClasspathPropertySource, FileSystemPropertySource, ServletContextPropertySource

public abstract class AbstractStreamBasedPropertySource
extends AbstractPropertySource

Abstract implementation of PropertySource, providing the basic mechanisms for loading AbstractStreamBasedPropertySource.ConstructingProperties from a given InputStream.


Nested Class Summary
static class AbstractStreamBasedPropertySource.ConstructingProperties
          A subclass of Properties which populates itself with a given InputStream.
 
Constructor Summary
protected AbstractStreamBasedPropertySource(InputStream stream, String path)
           
 
Method Summary
 String describe()
          Provides a description of this source, typically the location of the file that was used to load the properties this source holds.
 
Methods inherited from class info.magnolia.init.properties.AbstractPropertySource
getBooleanProperty, getKeys, getProperties, getProperty, hasProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractStreamBasedPropertySource

protected AbstractStreamBasedPropertySource(InputStream stream,
                                            String path)
                                     throws IOException
Throws:
IOException
Method Detail

describe

public String describe()
Description copied from interface: PropertySource
Provides a description of this source, typically the location of the file that was used to load the properties this source holds. Useful for debugging / logging.

Specified by:
describe in interface PropertySource
Overrides:
describe in class AbstractPropertySource


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.