T
- the type parameter@FunctionalInterface
public interface ResponseBuilderLocator<T extends WebApplicationService>
extends java.io.Serializable
ResponseBuilderLocator
which attempts to locate ResponseBuilder
objects registered in the application context. This is an abstraction that is separated
from the actual service and response API to remove issues with serialization and such.
Services are no longer responsible for producing a response and their response builder
will need to be located via this class. This frees up the service API quite a bit to
inject all sorts of components into builders to accommodate for various use cases
and not have to worry about whether a given field in a builder is serialization friendly.Modifier and Type | Method and Description |
---|---|
ResponseBuilder<T> |
locate(T service)
Locate response builder appropriate for the given service.
|
ResponseBuilder<T> locate(T service)
service
- the service