public interface ObservableProperties extends org.refcodes.configuration.Properties, org.refcodes.observer.Observable<PropertiesObserver>
ObservableProperties
represent Properties
which are
observable in terms of create, update and delete operations:
Create: Whenever a property is created (as of
Keys.MutableValues.put(Object, Object)
) in the related
ObservableProperties
instance, then the
PropertiesObserver.onPropertyCreatedEvent(PropertyCreatedEvent)
method of a registered PropertiesObserver
instance is invoked.
Update: Whenever an existing property (as of
Keys.containsKey(Object)
) is updated in the related
ObservableProperties
instance (as of
Keys.MutableValues.put(Object, Object)
or the like}, then the
PropertiesObserver.onPropertyUpdatedEvent(PropertyUpdatedEvent)
method of a registered PropertiesObserver
instance is invoked.
Delete: Whenever a property is deleted (as of
Map.remove(Object)
), then the
PropertiesObserver.onPropertyDeletedEvent(PropertyDeletedEvent)
method of a registered PropertiesObserver
instance is invoked.
A catch-all (lambda) for all events is provided by the
PropertiesObserver
via the
PropertiesObserver.onEvent(PropertyEvent)
method. You can provide a
lambda expression when calling
Observable.subscribeObserver(Object)
, thereby implementing this
catch-all method.Modifier and Type | Interface and Description |
---|---|
static interface |
ObservableProperties.ObservableMutableProperties
The
ObservableProperties.ObservableMutableProperties represent mutable
ObservableProperties . |
static interface |
ObservableProperties.ObservablePropertiesBuilder
The
ObservableProperties.ObservablePropertiesBuilder represents a
ObservableProperties.ObservableMutableProperties builder. |
org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.structure.PathMap.MutablePathMap<T>, org.refcodes.structure.PathMap.PathMapBuilder<T>
org.refcodes.structure.Dictionary.MutableDictionary<K,V>
org.refcodes.structure.Keys.MutableKeys<K,V>, org.refcodes.structure.Keys.MutableValues<K,V>
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.mixin.TypeAccessor.TypeMutator<T>, org.refcodes.mixin.TypeAccessor.TypeProperty<T>
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
containsValue, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
toInstance, toInstance, toType, toType
directories, directories, entries, entries, fromExternalKey, getArray, getArray, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toRootPath
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
Copyright © 2017. All rights reserved.