public static class PropertyHandler.Builder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Properties |
properties |
protected java.lang.String |
propertyPrefix |
protected boolean |
update |
Constructor and Description |
---|
PropertyHandler.Builder() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Properties |
createProperties(java.net.URL location)
Reads the file at the given location and creates a Properties file
from the contents.
|
PropertyHandler.Builder |
setProgressUpdates(boolean update) |
PropertyHandler.Builder |
setProperties(java.util.Properties props)
Have the builder use the provided properties.
|
PropertyHandler.Builder |
setPropertiesFile(java.lang.String location)
Have the builder look for a resource, file or URL at the location.
|
PropertyHandler.Builder |
setPropertiesFile(java.net.URL url)
Have the builder look for properties file at URL location.
|
PropertyHandler.Builder |
setPropertyPrefix(java.lang.String prefix)
Set the property prefix used for general settings in the properties
in configuration of application.
|
protected boolean update
protected java.util.Properties properties
protected java.lang.String propertyPrefix
public PropertyHandler.Builder setPropertiesFile(java.lang.String location) throws java.net.MalformedURLException, java.io.IOException
location
- of the properties filejava.net.MalformedURLException
java.io.IOException
public PropertyHandler.Builder setPropertiesFile(java.net.URL url) throws java.io.IOException
url
- java.io.IOException
public PropertyHandler.Builder setProperties(java.util.Properties props)
props
- Properties to use.public PropertyHandler.Builder setPropertyPrefix(java.lang.String prefix)
prefix
- Set the property prefix for the PropertyHandlerpublic PropertyHandler.Builder setProgressUpdates(boolean update)
update
- flag for providing progress updatesprotected java.util.Properties createProperties(java.net.URL location) throws java.io.IOException
location
- URL of filejava.io.IOException
- if something goes wrong reading the file.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details