ma.glasnost.orika.impl
Class DefaultCodeGenerationStrategy
java.lang.Object
ma.glasnost.orika.impl.DefaultCodeGenerationStrategy
- All Implemented Interfaces:
- CodeGenerationStrategy
public class DefaultCodeGenerationStrategy
- extends Object
- implements CodeGenerationStrategy
- Author:
- matt.deboer@gmail.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setMapperFactory
public void setMapperFactory(MapperFactory mapperFactory)
- Description copied from interface:
CodeGenerationStrategy
- Set the MapperFactory on this CodeGenerationStrategy
- Specified by:
setMapperFactory in interface CodeGenerationStrategy
- Parameters:
mapperFactory - the MapperFactory to apply
addSpecification
public void addSpecification(Specification spec,
CodeGenerationStrategy.Position relativePosition,
Class<Specification> relativeSpec)
- Description copied from interface:
CodeGenerationStrategy
- Convenience method to add a specification at a relative position with respect to
another Specification, or the list in general
- Specified by:
addSpecification in interface CodeGenerationStrategy
- Parameters:
spec - the specification to addrelativePosition - the relative positionrelativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)
getSpecifications
public List<Specification> getSpecifications()
- Specified by:
getSpecifications in interface CodeGenerationStrategy
- Returns:
- the defined specifications
addAggregateSpecification
public void addAggregateSpecification(AggregateSpecification spec,
CodeGenerationStrategy.Position relativePosition,
Class<AggregateSpecification> relativeSpec)
- Description copied from interface:
CodeGenerationStrategy
- Convenience method to add an AggregateSpecification at a relative position with respect to
another AggregateSpecification, or the list in general
- Specified by:
addAggregateSpecification in interface CodeGenerationStrategy
- Parameters:
spec - the specification to addrelativePosition - the relative positionrelativeSpec - the other relative spec (for Positions BEFORE, AFTER, or IN_PLACE_OF)
getAggregateSpecifications
public List<AggregateSpecification> getAggregateSpecifications()
- Specified by:
getAggregateSpecifications in interface CodeGenerationStrategy
- Returns:
- the defined aggregate specifications
Copyright © 2013 Glasnost. All Rights Reserved.