public interface SourceProperties
Modifier and Type | Method and Description |
---|---|
Properties |
getProperties()
Properties to configure the source.
|
String |
getProperty(String name)
Obtains a required property value.
|
String |
getProperty(String name,
String defaultValue)
Obtains the property value or subsequently the default value.
|
String[] |
getPropertyNames()
Obtains the names of the available properties in the order they were
defined.
|
String[] getPropertyNames()
Obtains the names of the available properties in the order they were defined. This allows for ability to provide variable number of properties identified by a naming convention and being able to maintain their order.
An example would be providing a listing of routing configurations, each
entry named route.[something]
and order indicating priority.
String getProperty(String name) throws UnknownPropertyError
name
- Name of the property.UnknownPropertyError
- If property was not configured. Let this propagate as
OfficeFloor will handle it.String getProperty(String name, String defaultValue)
name
- Name of the property.defaultValue
- Default value if property not specified.Properties getProperties()
Copyright © 2005–2016. All rights reserved.