public final class ServicePipeline
extends java.lang.Object
ServiceRepository instances for specific service types.| Modifier and Type | Method and Description |
|---|---|
<Context,Result> |
create(io.leangen.geantyref.TypeToken<? extends Service<Context,Result>> type,
Service<Context,Result> defaultImplementation)
Creates a new
ServiceRepository for the given service type and default implementation. |
public <Context,Result> ServiceRepository<Context,Result> create(io.leangen.geantyref.TypeToken<? extends Service<Context,Result>> type, Service<Context,Result> defaultImplementation)
ServiceRepository for the given service type and default implementation.Context - the context type.Result - the result type.type - the type token of the service.defaultImplementation - the default implementation of the service.ServiceRepository.