A - the aggregate root type.I - the aggregate root identifier type.D - the representation type.public interface Resource<A extends AggregateRoot<I>,I,D>
CreateResource,
ReadResource,
UpdateResource,
DeleteResource| Modifier and Type | Method and Description |
|---|---|
default String |
buildAggregateName(I id)
Builds the standardized name of the aggregate for a particular id.
|
Class<A> |
getAggregateRootClass()
Returns the aggregate root class managed by the resource.
|
FluentAssembler |
getFluentAssembler()
Returns the
FluentAssembler implementation used by the resource. |
Class<I> |
getIdentifierClass()
Returns the aggregate root identifier class managed by the resource.
|
Paginator |
getPaginator()
Returns the
Paginator implementation used by the resource. |
Repository<A,I> |
getRepository()
Returns the repository where to find aggregates managed by the resource.
|
Class<D> |
getRepresentationClass()
Returns the representation class managed by the resource.
|
default String buildAggregateName(I id)
id - the aggregate identifier.Class<A> getAggregateRootClass()
FluentAssembler getFluentAssembler()
FluentAssembler implementation used by the resource.FluentAssembler implementation.Class<I> getIdentifierClass()
Paginator getPaginator()
Paginator implementation used by the resource.Paginator implementation.Repository<A,I> getRepository()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.