it.bz.opendatahub.alpinebits.validation.context.ValidationContextProvider Maven / Gradle / Ivy
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package it.bz.opendatahub.alpinebits.validation.context;
import it.bz.opendatahub.alpinebits.middleware.Context;
/**
* This interfaces defines methods to produce contexts used during validation.
*
* @param the validation context type
*/
public interface ValidationContextProvider {
/**
* Build context of type C
, using the
* Middleware {@link Context}.
*
* @param ctx the middleware context used to build the validation context
* @return the validation context
*/
C buildContext(Context ctx);
}