public class StandardPropertyManager extends Object implements PropertyManager
PropertyManager.SYSTEM_PROPERTY_SOURCE| Constructor and Description |
|---|
StandardPropertyManager()
Default Constructor.
|
StandardPropertyManager(Properties properties,
String source)
Constructor with some properties.
|
StandardPropertyManager(PropertyManager parent)
Constructor the defers first to a parent.
|
StandardPropertyManager(PropertyManager parent,
Properties properties,
String source)
Constructor that defers first to parent, then to given properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyLookup(PropertyLookup propertyLookup)
Add a lookup.
|
void |
addPropertyOverride(PropertyLookup propertyLookup)
Add a property overrides.
|
String |
lookup(String propertyName)
Return the value of a property, or null if it doesn't exist.
|
Set<String> |
propertyNames()
Return all property names in this property lookup.
|
void |
removePropertyLookup(PropertyLookup propertyLookup)
Remove a lookup.
|
PropertySource |
sourceFor(String propertyName)
Return a source for the property.
|
public StandardPropertyManager()
public StandardPropertyManager(Properties properties, String source)
properties - source - The name of the source of the properties.public StandardPropertyManager(PropertyManager parent)
parent - public StandardPropertyManager(PropertyManager parent, Properties properties, String source)
parent - properties - source - The name of the source of the properties.public void addPropertyLookup(PropertyLookup propertyLookup)
PropertyManageraddPropertyLookup in interface PropertyManagerpublic void addPropertyOverride(PropertyLookup propertyLookup)
PropertyManageraddPropertyOverride in interface PropertyManagerpublic void removePropertyLookup(PropertyLookup propertyLookup)
PropertyManagerremovePropertyLookup in interface PropertyManagerpublic String lookup(String propertyName)
PropertyLookuplookup in interface PropertyLookuppropertyName - The name of the property.public Set<String> propertyNames()
PropertyLookuppropertyNames in interface PropertyLookuppublic PropertySource sourceFor(String propertyName)
PropertyLookupsourceFor in interface PropertyLookuppropertyName - The property name.Copyright © 2023. All rights reserved.