- Enclosing interface:
ModificationEvent
public static interface ModificationEvent.Builder
Build and publish modifications to the configuration.
configuration.eventBuilder("MyChanges")
.put("someKey", "val0")
.put("someOther.key", "42")
.remove("foo")
.publish();
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
publish()
Publish the changes.Set a property value.Set all the properties from the map.Remove a property from the configuration.
-
Method Details
-
put
Set a property value.- Parameters:
key
- The property keyvalue
- The new value of the property
-
putAll
Set all the properties from the map. -
remove
Remove a property from the configuration. -
publish
void publish()Publish the changes. Listeners registered viaConfiguration.onChange(Consumer, String...)
will be notified on the changes.
-