A - the aggregate root type.I - the aggregate root identifier type.D - the representation type.public abstract class BaseResource<A extends AggregateRoot<I>,I,D> extends Object implements Resource<A,I,D>
CreateResource, ReadResource,
UpdateResource and DeleteResource interfaces.| Modifier | Constructor and Description |
|---|---|
protected |
BaseResource() |
protected |
BaseResource(Class<A> aggregateRootClass,
Class<I> identifierClass,
Class<D> representationClass) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildAggregateNamepublic Class<A> getAggregateRootClass()
ResourcegetAggregateRootClass in interface Resource<A extends AggregateRoot<I>,I,D>public FluentAssembler getFluentAssembler()
ResourceFluentAssembler implementation used by the resource.getFluentAssembler in interface Resource<A extends AggregateRoot<I>,I,D>FluentAssembler implementation.public Class<I> getIdentifierClass()
ResourcegetIdentifierClass in interface Resource<A extends AggregateRoot<I>,I,D>public Paginator getPaginator()
ResourcePaginator implementation used by the resource.getPaginator in interface Resource<A extends AggregateRoot<I>,I,D>Paginator implementation.public Repository<A,I> getRepository()
ResourcegetRepository in interface Resource<A extends AggregateRoot<I>,I,D>public Class<D> getRepresentationClass()
ResourcegetRepresentationClass in interface Resource<A extends AggregateRoot<I>,I,D>Copyright © 2013-2018–2019 SeedStack. All rights reserved.