A
- the aggregate root type.D
- the dto type.public abstract class BaseAssembler<A extends AggregateRoot<?>,D> extends Object implements Assembler<A,D>
Modifier | Constructor and Description |
---|---|
|
BaseAssembler()
Creates a base assembler.
|
protected |
BaseAssembler(Class<D> dtoClass)
Creates a base assembler.
|
Modifier and Type | Method and Description |
---|---|
D |
createDto()
This method is responsible for creating a new DTO instance during the assembling task.
|
Class<D> |
getDtoClass()
The DTO class the assemblers works on.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDtoFromAggregate, mergeAggregateIntoDto, mergeDtoIntoAggregate
public BaseAssembler()
public Class<D> getDtoClass()
Assembler
getDtoClass
in interface Assembler<A extends AggregateRoot<?>,D>
public D createDto()
Assembler
createDto
in interface Assembler<A extends AggregateRoot<?>,D>
Assembler.createDtoFromAggregate(Object)
Copyright © 2013-2018–2019 SeedStack. All rights reserved.