Interface ConfigurationService
- All Superinterfaces:
AutoCloseable
Manages OpenFlowPlugin configuration.
-
Method Summary
Modifier and TypeMethodDescription<T> @NonNull T
getProperty
(@NonNull String key, @NonNull Function<String, T> transformer) Get single property from configuration service.@NonNull AutoCloseable
registerListener
(@NonNull ConfigurationListener listener) Register listener for configuration changes.void
Update map of properties.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
update
Update map of properties.- Parameters:
properties
- properties
-
registerListener
Register listener for configuration changes.- Parameters:
listener
- the listener- Returns:
- the auto closeable listener registration
-
getProperty
Get single property from configuration service.- Type Parameters:
T
- property type- Parameters:
key
- property keytransformer
- property type transformer- Returns:
- property property
-