|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CodeGenerationStrategy
CodeGenerationStrategy is an encapsulation of the collection of individual field mapping scenarios for which code is generated. It allows reordering, overriding, adding and removing the scenarios individually as desired.
| Nested Class Summary | |
|---|---|
static class |
CodeGenerationStrategy.Position
|
| Method Summary | |
|---|---|
void |
addAggregateSpecification(AggregateSpecification spec,
CodeGenerationStrategy.Position relativePosition,
Class<AggregateSpecification> relativeSpec)
Convenience method to add an AggregateSpecification at a relative position with respect to another AggregateSpecification, or the list in general |
void |
addSpecification(Specification spec,
CodeGenerationStrategy.Position relativePosition,
Class<Specification> relativeSpec)
Convenience method to add a specification at a relative position with respect to another Specification, or the list in general |
List<AggregateSpecification> |
getAggregateSpecifications()
|
List<Specification> |
getSpecifications()
|
void |
setMapperFactory(MapperFactory mapperFactory)
Set the MapperFactory on this CodeGenerationStrategy |
| Method Detail |
|---|
void setMapperFactory(MapperFactory mapperFactory)
mapperFactory - the MapperFactory to apply
void addSpecification(Specification spec,
CodeGenerationStrategy.Position relativePosition,
Class<Specification> relativeSpec)
spec - the specification to addrelativePosition - the relative positionrelativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)List<Specification> getSpecifications()
void addAggregateSpecification(AggregateSpecification spec,
CodeGenerationStrategy.Position relativePosition,
Class<AggregateSpecification> relativeSpec)
spec - the specification to addrelativePosition - the relative positionrelativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)List<AggregateSpecification> getAggregateSpecifications()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||