Class DataRoutingService.NullPropertyProvider
java.lang.Object
com.illumon.iris.db.v2.configuration.DataRoutingService.NullPropertyProvider
- All Implemented Interfaces:
DataRoutingService.PropertyProvider
- Enclosing interface:
- DataRoutingService
public static class DataRoutingService.NullPropertyProvider extends Object implements DataRoutingService.PropertyProvider
Implementation of "no properties".
-
Constructor Summary
Constructors Constructor Description NullPropertyProvider() -
Method Summary
Modifier and Type Method Description Map<Object,Object>asMap()Return all properties as a map.ObjectgetProperty(String propertyName)Return the named property value, or null.<T> TgetProperty(String propertyName, T defaultValue)Return the named property value, with the type indicated by the default value.
-
Constructor Details
-
NullPropertyProvider
public NullPropertyProvider()
-
-
Method Details
-
getProperty
Description copied from interface:DataRoutingService.PropertyProviderReturn the named property value, or null. The actual type is determined by the implementation.- Specified by:
getPropertyin interfaceDataRoutingService.PropertyProvider- Parameters:
propertyName- the name of the property to fetch- Returns:
- the value of the property, or null if not set
-
getProperty
Description copied from interface:DataRoutingService.PropertyProviderReturn the named property value, with the type indicated by the default value. If the property isn't set, return the default value.- Specified by:
getPropertyin interfaceDataRoutingService.PropertyProvider- Parameters:
propertyName- the name of the property to fetchdefaultValue- the typed default value to return if the property is not set- Returns:
- the value of the property, or null if not set
-
asMap
Description copied from interface:DataRoutingService.PropertyProviderReturn all properties as a map. This is useful for interactions outside the DB project.- Specified by:
asMapin interfaceDataRoutingService.PropertyProvider- Returns:
- a map containing all keys and values for this provider
-