Context - the context type.Result - the result type.public interface Implementation<Context,Result>
ServiceRepository.| Modifier and Type | Method and Description |
|---|---|
void |
handle(ServiceRepository<Context,Result> repository)
Handles the operation by applying it to the given repository.
|
static <Context,Result> |
register(Service<Context,Result> service)
Creates a new register operation.
|
static <Context,Result> |
register(Service<Context,Result> service,
java.util.Collection<java.util.function.Predicate<Context>> filters)
Creates a new register operation.
|
static <Context,Result> |
registerAfter(java.lang.String serviceKey,
Service<Context,Result> service)
Creates a new register after operation.
|
static <Context,Result> |
registerAfter(java.lang.String serviceKey,
Service<Context,Result> service,
java.util.Collection<java.util.function.Predicate<Context>> filters)
Creates a new register after operation.
|
static <Context,Result> |
registerBefore(java.lang.String serviceKey,
Service<Context,Result> service)
Creates a new register before operation.
|
static <Context,Result> |
registerBefore(java.lang.String serviceKey,
Service<Context,Result> service,
java.util.Collection<java.util.function.Predicate<Context>> filters)
Creates a new register before operation.
|
static <Context,Result> |
remove(java.lang.String serviceKey)
Creates a new remove operation.
|
static <Context,Result> |
replace(java.lang.String serviceKey,
java.util.function.UnaryOperator<Service<Context,Result>> service)
Creates a new replace operation.
|
static <Context,Result> |
replace(java.lang.String serviceKey,
java.util.function.UnaryOperator<Service<Context,Result>> service,
java.util.Collection<java.util.function.Predicate<Context>> filters)
Creates a new replace operation.
|
static <Context,Result> Implementation<Context,Result> remove(java.lang.String serviceKey)
Context - the context type.Result - the result type.serviceKey - the key of the service to remove.static <Context,Result> Implementation<Context,Result> register(Service<Context,Result> service, java.util.Collection<java.util.function.Predicate<Context>> filters)
Context - the context type.Result - the result type.service - the service to register.filters - the filters to apply to the service.static <Context,Result> Implementation<Context,Result> register(Service<Context,Result> service)
Context - the context type.Result - the result type.service - the service to register.static <Context,Result> Implementation<Context,Result> registerBefore(java.lang.String serviceKey, Service<Context,Result> service, java.util.Collection<java.util.function.Predicate<Context>> filters)
Context - the context type.Result - the result type.serviceKey - the key of the service to register before.service - the service to register.filters - the filters to apply to the service.static <Context,Result> Implementation<Context,Result> registerBefore(java.lang.String serviceKey, Service<Context,Result> service)
Context - the context type.Result - the result type.serviceKey - the key of the service to register before.service - the service to register.static <Context,Result> Implementation<Context,Result> registerAfter(java.lang.String serviceKey, Service<Context,Result> service, java.util.Collection<java.util.function.Predicate<Context>> filters)
Context - the context type.Result - the result type.serviceKey - the key of the service to register after.service - the service to register.filters - the filters to apply to the service.static <Context,Result> Implementation<Context,Result> registerAfter(java.lang.String serviceKey, Service<Context,Result> service)
Context - the context type.Result - the result type.serviceKey - the key of the service to register after.service - the service to register.static <Context,Result> Implementation<Context,Result> replace(java.lang.String serviceKey, java.util.function.UnaryOperator<Service<Context,Result>> service, java.util.Collection<java.util.function.Predicate<Context>> filters)
Context - the context type.Result - the result type.serviceKey - the key of the service to replace.service - the service to replace with.filters - the filters to apply to the service.static <Context,Result> Implementation<Context,Result> replace(java.lang.String serviceKey, java.util.function.UnaryOperator<Service<Context,Result>> service)
Context - the context type.Result - the result type.serviceKey - the key of the service to replace.service - the service to replace with.void handle(ServiceRepository<Context,Result> repository)
repository - the repository to apply the operation to.