Interface ConfigurationService
-
- All Superinterfaces:
AutoCloseable
public interface ConfigurationService extends AutoCloseable
Manages OpenFlowPlugin configuration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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(@NonNull Map<String,String> properties)
Update map of properties.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
update
void update(@NonNull Map<String,String> properties)
Update map of properties.- Parameters:
properties
- properties
-
registerListener
@NonNull AutoCloseable registerListener(@NonNull ConfigurationListener listener)
Register listener for configuration changes.- Parameters:
listener
- the listener- Returns:
- the auto closeable listener registration
-
-