org.picocontainer.gems.util
Class ConstructableProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.picocontainer.gems.util.ConstructableProperties
- All Implemented Interfaces:
- Serializable, Cloneable, Map<Object,Object>
public class ConstructableProperties
- extends Properties
constructable properties.
- Author:
- Konstantin Pribluda
- See Also:
- Serialized Form
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
ConstructableProperties
public ConstructableProperties(String resource)
throws IOException
- create properties from classpath resource using context classloader
- Parameters:
resource
- resource name
- Throws:
IOException
- passed from Properties.load()
ConstructableProperties
public ConstructableProperties(String resource,
Properties defaults)
throws IOException
- Parameters:
resource
- resource namedefaults
- default properties
- Throws:
IOException
- can be thrown if something goes wrong
ConstructableProperties
public ConstructableProperties(InputStream stream)
throws IOException
- create properties from input stream
- Parameters:
stream
- to read from
- Throws:
IOException
- can be thrown by properties objkect
ConstructableProperties
public ConstructableProperties(InputStream stream,
Properties defaults)
throws IOException
- create from inpiut stream with default properties
- Parameters:
stream
- to read fromdefaults
- default properties
- Throws:
IOException
- can be thrown by properties object
Copyright © 2003-2010 Codehaus. All Rights Reserved.