AGGREGATE_ROOT - the aggregate rootDTO - the dto typepublic abstract class AbstractBaseAssembler<AGGREGATE_ROOT,DTO> extends Object implements Assembler<AGGREGATE_ROOT,DTO>
BaseAssembler,
BaseTupleAssembler| Constructor and Description |
|---|
AbstractBaseAssembler() |
| Modifier and Type | Method and Description |
|---|---|
Class<DTO> |
getDtoClass()
Returns the DTO type handled by the assembler.
|
protected DTO |
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, mergeAggregateWithDto, updateDtoFromAggregatepublic Class<DTO> getDtoClass()
AssemblergetDtoClass in interface Assembler<AGGREGATE_ROOT,DTO>protected DTO 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.