Package ej.property
Class PropertyFactory
- java.lang.Object
-
- ej.property.PropertyFactory
-
public class PropertyFactory extends java.lang.ObjectGets a property loader that is able to retrieve properties.The property loader implementation is retrieved from system properties (see
SystemPropertiesServiceLoader), if none is found, aSystemPropertyLoaderis used.Usage:
String propertyValue = PropertyFactory.getPropertyLoader().getProperty("myKey");The property registry implementation is retrieved from system properties (see
SystemPropertiesServiceLoader), if none is found, aSimplePropertyRegistryis used.Usage:
PropertyFactory.getPropertyRegistry().put("myKey", "myValue");
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyLoadergetPropertyLoader()Gets a property loader unique instance.static PropertyRegistrygetPropertyRegistry()Gets a property registry unique instance.
-
-
-
Method Detail
-
getPropertyLoader
public static PropertyLoader getPropertyLoader()
Gets a property loader unique instance.- Returns:
- a property loader.
-
getPropertyRegistry
public static PropertyRegistry getPropertyRegistry()
Gets a property registry unique instance.- Returns:
- a property registry.
-
-