T
- the model's typeS
- the type of the model's identifier (e.g., Long
,
String
, etc.)U
- the type of the resource's identifier. It must be a subclass
of Identifier
.V
- the type of the parent model's identifier (e.g., Long
, String
, etc.)W
- the type of the parent resource's identifier. It must be a
subclass of Identifier<W>
.ActionRouter
instead@ConsumerType
@Deprecated
public interface NestedCollectionRouter<T,S,U extends Identifier<S>,V,W extends Identifier<V>>
The type parameter provided for the resource ID must be unique in the application.
You can add the different routes supported for the nested collection resource
via the collectionRoutes(NestedCollectionRoutes.Builder)
method.
The union of an instance of this interface with a Representable
creates a complete
resource that behaves as its own API.
NestedCollectionRoutes.Builder
Modifier and Type | Method and Description |
---|---|
NestedCollectionRoutes<T,S,V> |
collectionRoutes(NestedCollectionRoutes.Builder<T,S,V> builder)
Deprecated.
As of 1.9.0, use
ActionRouter instead |
@Deprecated NestedCollectionRoutes<T,S,V> collectionRoutes(NestedCollectionRoutes.Builder<T,S,V> builder)
ActionRouter
insteadNestedCollectionRoutes
supported by the nested
collection resource. Use the provided routes builder to create the NestedCollectionRoutes
instance.builder
- the routes builder to use to create the NestedCollectionRoutes
instanceNestedCollectionRoutes.Builder