org.hibernate.validator.cfg.context.ReturnValueTarget Maven / Gradle / Ivy
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package org.hibernate.validator.cfg.context;
/**
* Facet of a constraint mapping creational context which allows to select the current method's or constructor's
* return value as target for the next operations.
*
* @author Kevin Pollet <[email protected]> (C) 2011 SERLI
* @author Gunnar Morling
*/
public interface ReturnValueTarget {
/**
* Selects the current method's return value as the target for the next operations. The return value
* of one method or constructor may only be configured more once.
*
* @return A creational context representing the current method's or constructor's return value.
*/
ReturnValueConstraintMappingContext returnValue();
}