Class SameBehaviorInstructionValidator
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.validation.instruction.SameBehaviorInstructionValidator
-
- All Implemented Interfaces:
MigrationInstructionValidator
public class SameBehaviorInstructionValidator extends java.lang.Object implements MigrationInstructionValidator
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.util.Set<java.lang.Class<?>>>
EQUIVALENT_BEHAVIORS
protected java.util.Map<java.lang.Class<?>,java.util.Set<java.lang.Class<?>>>
equivalentBehaviors
-
Constructor Summary
Constructors Constructor Description SameBehaviorInstructionValidator()
SameBehaviorInstructionValidator(java.util.List<java.util.Set<java.lang.Class<?>>> equivalentBehaviors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
sameBehavior(java.lang.Class<?> sourceBehavior, java.lang.Class<?> targetBehavior)
void
validate(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
Check that a migration instruction is valid for a migration plan.
-
-
-
Method Detail
-
validate
public void validate(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, MigrationInstructionValidationReportImpl report)
Description copied from interface:MigrationInstructionValidator
Check that a migration instruction is valid for a migration plan. If it is invalid a failure has to added to the validation report.- Specified by:
validate
in interfaceMigrationInstructionValidator
- Parameters:
instruction
- the instruction to validateinstructions
- the complete migration plan to validatereport
- the validation report
-
sameBehavior
protected boolean sameBehavior(java.lang.Class<?> sourceBehavior, java.lang.Class<?> targetBehavior)
-
-