Class ObservablePropertiesSugar
java.lang.Object
org.refcodes.properties.PropertiesSugar
org.refcodes.properties.ext.observer.ObservablePropertiesSugar
public class ObservablePropertiesSugar
extends org.refcodes.properties.PropertiesSugar
Declarative syntactic sugar which may be statically imported in order to
allow declarative definitions for the construction of
ObservableProperties
(and the like).-
Method Summary
Modifier and TypeMethodDescriptionobserve
(org.refcodes.properties.Properties.PropertiesBuilder aProperties) Create anObservableProperties.ObservablePropertiesBuilder
by decorating the providedProperties.PropertiesBuilder
with observable functionality.observe
(org.refcodes.properties.ResourceProperties.ResourcePropertiesBuilder aProperties) Create anObservableResouceProperties.ObservableResourcePropertiesBuilder
by decorating the providedResourceProperties.ResourcePropertiesBuilder
with observable functionality.Methods inherited from class org.refcodes.properties.PropertiesSugar
fileToJavaProperties, fileToJavaProperties, fileToJsonProperties, fileToJsonProperties, fileToTomlProperties, fileToTomlProperties, fileToXmlProperties, fileToXmlProperties, fileToYamlProperties, fileToYamlProperties, from, from, fromEnvironmentVariables, fromProfile, fromProfile, fromProperties, fromSystemProperties, loadFromJavaProperties, loadFromJavaProperties, loadFromJavaProperties, loadFromJavaProperties, loadFromJsonProperties, loadFromJsonProperties, loadFromJsonProperties, loadFromJsonProperties, loadFromTomlProperties, loadFromTomlProperties, loadFromTomlProperties, loadFromTomlProperties, loadFromXmlProperties, loadFromXmlProperties, loadFromXmlProperties, loadFromXmlProperties, loadFromYamlProperties, loadFromYamlProperties, loadFromYamlProperties, loadFromYamlProperties, saveToJavaProperties, saveToJavaProperties, saveToJavaProperties, saveToJsonProperties, saveToJsonProperties, saveToJsonProperties, saveToTomlProperties, saveToTomlProperties, saveToTomlProperties, saveToXmlProperties, saveToXmlProperties, saveToXmlProperties, saveToYamlProperties, saveToYamlProperties, saveToYamlProperties, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, seekFromJavaProperties, seekFromJavaProperties, seekFromJsonProperties, seekFromJsonProperties, seekFromTomlProperties, seekFromTomlProperties, seekFromXmlProperties, seekFromXmlProperties, seekFromYamlProperties, seekFromYamlProperties, toNormalized, toNormalized, toPrecedence, toPropertiesBuilder, toPropertiesBuilder, toProperty
-
Method Details
-
observe
public static ObservableProperties.ObservablePropertiesBuilder observe(org.refcodes.properties.Properties.PropertiesBuilder aProperties) Create anObservableProperties.ObservablePropertiesBuilder
by decorating the providedProperties.PropertiesBuilder
with observable functionality.- Parameters:
aProperties
- TheProperties.PropertiesBuilder
to be decorated withObservableProperties.ObservablePropertiesBuilder
functionality.- Returns:
- The according observable
ObservableProperties.ObservablePropertiesBuilder
.
-
observe
public static ObservableResouceProperties.ObservableResourcePropertiesBuilder observe(org.refcodes.properties.ResourceProperties.ResourcePropertiesBuilder aProperties) Create anObservableResouceProperties.ObservableResourcePropertiesBuilder
by decorating the providedResourceProperties.ResourcePropertiesBuilder
with observable functionality.- Parameters:
aProperties
- TheResourceProperties.ResourcePropertiesBuilder
to be decorated withObservableResouceProperties.ObservableResourcePropertiesBuilder
functionality.- Returns:
- The according observable
ObservableResouceProperties.ObservableResourcePropertiesBuilder
.
-