Interface ServiceValueRegistry<V>
-
- Type Parameters:
V- the captured service value type
- All Known Subinterfaces:
ServiceValueExecutorRegistry<V>
public interface ServiceValueRegistry<V>A registry of service values.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Consumer<V>add(ServiceDependency<V> dependency)Adds a registration for the specified service dependencyvoidremove(ServiceDependency<V> dependency)Removes the registration for the specified service dependency
-
-
-
Method Detail
-
add
Consumer<V> add(ServiceDependency<V> dependency)
Adds a registration for the specified service dependency- Parameters:
dependency- a service dependency- Returns:
- a consumer to capture the service value
-
remove
void remove(ServiceDependency<V> dependency)
Removes the registration for the specified service dependency- Parameters:
dependency- a service dependency
-
-