Skip to content

Commit

Permalink
Break out the mapping strategy construction functionality to allow us…
Browse files Browse the repository at this point in the history
…ers to insert their own strategies.
  • Loading branch information
Dan Jasek committed Dec 15, 2016
1 parent 4f993b5 commit 5e796ce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions core/src/main/java/ma/glasnost/orika/MappingStrategyFactory.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package ma.glasnost.orika;

import ma.glasnost.orika.impl.mapping.strategy.MappingStrategyRecorder;

public interface MappingStrategyFactory {
/**
* Identifies if a mapping strategy can be applied to a scenario with the given context.
*/
boolean isApplicable(MappingStrategyRecorder data);

/**
* Builds the mapping strategy to be applied to the given context.
*/
MappingStrategy build(MappingStrategyRecorder data);
}

0 comments on commit 5e796ce

Please sign in to comment.