Class AbstractPropertyProvider
- java.lang.Object
-
- com.testomatio.reporter.propertyconfig.interf.AbstractPropertyProvider
-
- All Implemented Interfaces:
PropertyProvider
- Direct Known Subclasses:
DefaultPropertyProvider,FilePropertyProvider,JvmSystemPropertyProvider,SystemEnvPropertyProvider
public abstract class AbstractPropertyProvider extends Object implements PropertyProvider
Base class for property providers implementing chain of responsibility pattern. Defines the standard property provider chain order and provides factory method.
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyProvidernext
-
Constructor Summary
Constructors Constructor Description AbstractPropertyProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyProvider[]getPropertyProviders()Creates array of property providers in priority order: JVM system properties → Environment variables → File properties → Defaults.voidsetNext(PropertyProvider next)Sets next provider in the chain for fallback.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.testomatio.reporter.propertyconfig.interf.PropertyProvider
getProperty
-
-
-
-
Field Detail
-
next
protected PropertyProvider next
-
-
Method Detail
-
getPropertyProviders
public static PropertyProvider[] getPropertyProviders()
Creates array of property providers in priority order: JVM system properties → Environment variables → File properties → Defaults.- Returns:
- array of property providers in chain order
-
setNext
public void setNext(PropertyProvider next)
Description copied from interface:PropertyProviderSets next provider in the chain for fallback.- Specified by:
setNextin interfacePropertyProvider- Parameters:
next- next property provider
-
-