A - the aggregate rootD - the dto typepublic abstract class AbstractBaseAssembler<A,D> extends Object implements Assembler<A,D>
BaseAssembler,
BaseTupleAssembler| Constructor and Description |
|---|
AbstractBaseAssembler() |
| Modifier and Type | Method and Description |
|---|---|
Class<D> |
getDtoClass()
Returns the DTO type handled by the assembler.
|
protected D |
newDto()
This protected method is in charge of creating a new instance of the DTO.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassembleDtoFromAggregate, assembleDtoFromAggregate, mergeAggregateWithDtopublic Class<D> getDtoClass()
Assembler
This method is used by Assembler.assembleDtoFromAggregate(Object)
to determine the DTO type to instantiate.
getDtoClass in interface Assembler<A,D>protected D newDto()
The actual implementation is fine for simple POJO, but it can be
extended. The developers will then use getDtoClass() to retrieve
the destination class.
Copyright © 2013-2015–2015. All rights reserved.