public class DefaultCodeGenerationStrategy extends Object implements CodeGenerationStrategy
CodeGenerationStrategy.Position| Constructor and Description |
|---|
DefaultCodeGenerationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected static <T extends BaseSpecification> |
addSpec(List<T> specifications,
T spec,
CodeGenerationStrategy.Position relativePosition,
Class<? extends BaseSpecification> relativeSpec) |
void |
addSpecification(Specification spec,
CodeGenerationStrategy.Position relativePosition,
Class<? extends 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
|
public void setMapperFactory(MapperFactory mapperFactory)
CodeGenerationStrategysetMapperFactory in interface CodeGenerationStrategymapperFactory - the MapperFactory to applypublic void addSpecification(Specification spec, CodeGenerationStrategy.Position relativePosition, Class<? extends Specification> relativeSpec)
CodeGenerationStrategyaddSpecification in interface CodeGenerationStrategyspec - the specification to addrelativePosition - the relative positionrelativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)protected static <T extends BaseSpecification> void addSpec(List<T> specifications, T spec, CodeGenerationStrategy.Position relativePosition, Class<? extends BaseSpecification> relativeSpec)
public List<Specification> getSpecifications()
getSpecifications in interface CodeGenerationStrategypublic void addAggregateSpecification(AggregateSpecification spec, CodeGenerationStrategy.Position relativePosition, Class<AggregateSpecification> relativeSpec)
CodeGenerationStrategyaddAggregateSpecification in interface CodeGenerationStrategyspec - the specification to addrelativePosition - the relative positionrelativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)public List<AggregateSpecification> getAggregateSpecifications()
getAggregateSpecifications in interface CodeGenerationStrategyCopyright © 2019 Glasnost. All rights reserved.