|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qi4j.api.composite.PropertyMapper
public final class PropertyMapper
Transfer java.util.Properties to Composite properties
Constructor Summary | |
---|---|
PropertyMapper()
|
Method Summary | |
---|---|
static void |
map(java.io.InputStream propertyInputStream,
Composite composite)
Load a Properties object from the given stream, close it, and then populate the Composite with the properties. |
static void |
map(java.util.Properties props,
Composite composite)
Populate the Composite with properties from the given properties object. |
static java.util.Properties |
toJavaProperties(Composite composite)
Create Properties object which is backed by the given Composite. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyMapper()
Method Detail |
---|
public static void map(java.util.Properties props, Composite composite) throws java.lang.IllegalArgumentException
props
- properties objectcomposite
- the composite instance
java.lang.IllegalArgumentException
- if properties could not be transferred to compositepublic static void map(java.io.InputStream propertyInputStream, Composite composite) throws java.io.IOException
propertyInputStream
- properties input streamcomposite
- the instance
java.io.IOException
- if the stream could not be readpublic static java.util.Properties toJavaProperties(Composite composite)
composite
- the instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |