|
|||||||||
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 properties to Composite properties
Constructor Summary | |
---|---|
PropertyMapper()
|
Method Summary | |
---|---|
static Properties |
getProperties(Composite composite)
Create Properties object which is backed by the given Composite. |
static void |
map(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(Properties props,
Composite composite)
Populate the Composite with properties from the given properties object. |
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(Properties props, Composite composite) throws IllegalArgumentException
props
- properties objectcomposite
- the composite instance
IllegalArgumentException
- if properties could not be transferred to compositepublic static void map(InputStream propertyInputStream, Composite composite) throws IOException
propertyInputStream
- properties input streamcomposite
- the instance
IOException
- if the stream could not be readpublic static Properties getProperties(Composite composite)
composite
- the instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |