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, wait
buildAggregateName
public Class<A> getAggregateRootClass()
Resource
getAggregateRootClass
in interface Resource<A extends AggregateRoot<I>,I,D>
public FluentAssembler getFluentAssembler()
Resource
FluentAssembler
implementation used by the resource.getFluentAssembler
in interface Resource<A extends AggregateRoot<I>,I,D>
FluentAssembler
implementation.public Class<I> getIdentifierClass()
Resource
getIdentifierClass
in interface Resource<A extends AggregateRoot<I>,I,D>
public Paginator getPaginator()
Resource
Paginator
implementation used by the resource.getPaginator
in interface Resource<A extends AggregateRoot<I>,I,D>
Paginator
implementation.public Repository<A,I> getRepository()
Resource
getRepository
in interface Resource<A extends AggregateRoot<I>,I,D>
public Class<D> getRepresentationClass()
Resource
getRepresentationClass
in interface Resource<A extends AggregateRoot<I>,I,D>
Copyright © 2013-2018–2019 SeedStack. All rights reserved.