I want extend chain of responsibility pattern implemented for validations. there is an abstract base class for validations which has an abstract method nextValidator which would be overridden by different validation class used for validation. This validation is being used for one functionality (say i want to execute 5 validation for this functionality for which i have 5 classes each implementing-overriding the nextValidator method).
public class abstractBaseValidation{
public abstract nextValidator();
}
abstractBaseValidation is the base class which would be extended by base validation class (say numValidation, messageValidation etc).
Now i want to implement another functionality - how can i extend existing chain of responsibility pattern implemented in code for new functionality. I know the set of validation i want to run for this new functionality
Aucun commentaire:
Enregistrer un commentaire