public abstract class AutoWirePropertiesImpl extends Object implements AutoWireProperties
PropertyList
for auto-wiring.Modifier and Type | Field and Description |
---|---|
static String |
ENVIRONMENT_PROPERTIES_DIRECTORY
System property to indicating the location of the
Properties files. |
Constructor and Description |
---|
AutoWirePropertiesImpl(ClassLoader classLoader,
PropertyList properties)
Initiate to use
ClassLoader . |
AutoWirePropertiesImpl(OfficeFloorCompiler compiler,
PropertyList properties)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String name,
String value)
Adds a
Property to configure the item. |
PropertyList |
getProperties()
Obtains the
PropertyList . |
void |
loadProperties(String propertiesFilePath)
Convenience method to add
Property instances from a properties
file. |
public static final String ENVIRONMENT_PROPERTIES_DIRECTORY
System
property to indicating the location of the
Properties
files.public AutoWirePropertiesImpl(OfficeFloorCompiler compiler, PropertyList properties)
compiler
- OfficeFloorCompiler
.properties
- PropertyList
.public AutoWirePropertiesImpl(ClassLoader classLoader, PropertyList properties)
ClassLoader
.classLoader
- ClassLoader
.properties
- PropertyList
.public PropertyList getProperties()
AutoWireProperties
PropertyList
.getProperties
in interface AutoWireProperties
PropertyList
.public void addProperty(String name, String value)
PropertyConfigurable
Property
to configure the item.addProperty
in interface PropertyConfigurable
name
- Name of Property
.value
- Value of Property
.public void loadProperties(String propertiesFilePath) throws IOException
AutoWireProperties
Convenience method to add Property
instances from a properties
file.
The location of the properties file is determined based on the system
property AutoWireProperties.ENVIRONMENT_PROPERTIES_DIRECTORY
:
loadProperties
in interface AutoWireProperties
propertiesFilePath
- Path to the properties file.IOException
- If fails to load the properties.Copyright © 2005–2016. All rights reserved.