Class PropertiesFactory
- java.lang.Object
-
- com.arjuna.common.util.propertyservice.PropertiesFactory
-
public final class PropertiesFactory extends Object
- Author:
- Gytis Trikleris
-
-
Constructor Summary
Constructors Constructor Description PropertiesFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertiesgetDefaultProperties()static PropertiesgetPropertiesFromFile(String propertyFileName, ClassLoader classLoader)static voidsetDelegatePropertiesFactory(AbstractPropertiesFactory propertiesFactory)Allow the properties factory delegate to be supplied externally.
-
-
-
Method Detail
-
setDelegatePropertiesFactory
public static void setDelegatePropertiesFactory(AbstractPropertiesFactory propertiesFactory)
Allow the properties factory delegate to be supplied externally. This is useful for containers like Quarkus that need to statically initialise properties during a deployment phase.- Parameters:
propertiesFactory- a factory for providing default values for properties
-
getDefaultProperties
public static Properties getDefaultProperties()
-
getPropertiesFromFile
public static Properties getPropertiesFromFile(String propertyFileName, ClassLoader classLoader)
-
-