public class PropertyFactory extends Object
The property loader implementation is retrieved from system properties (see SystemPropertiesServiceLoader
),
if none is found, a SystemPropertyLoader
is used.
Usage:
String propertyValue = PropertyFactory.getPropertyLoader().getProperty("myKey");
The property registry implementation is retrieved from system properties (see SystemPropertiesServiceLoader
),
if none is found, a SimplePropertyRegistry
is used.
Usage:
PropertyFactory.getPropertyRegistry().put("myKey", "myValue");
Modifier and Type | Method and Description |
---|---|
static PropertyLoader |
getPropertyLoader()
Gets a property loader unique instance.
|
static PropertyRegistry |
getPropertyRegistry()
Gets a property registry unique instance.
|
public static PropertyLoader getPropertyLoader()
public static PropertyRegistry getPropertyRegistry()