Top Description Methods
org.hibernate.validator.cfg.context

public Interface MethodTarget

Known Direct Subinterfaces
org.hibernate.validator.cfg.context.ParameterConstraintMappingContext, org.hibernate.validator.cfg.context.PropertyConstraintMappingContext, org.hibernate.validator.cfg.context.ReturnValueConstraintMappingContext, org.hibernate.validator.cfg.context.TypeConstraintMappingContext, org.hibernate.validator.cfg.context.ContainerElementConstraintMappingContext, org.hibernate.validator.cfg.context.CrossParameterConstraintMappingContext

Facet of a constraint mapping creational context which allows to select the bean method to which the next operations shall apply.
Authors
Kevin Pollet <[email protected]> (C) 2011 SERLI, Gunnar Morling

Method Summary

Modifier and TypeMethod and Description
public MethodConstraintMappingContext

Returns:

A creational context representing the selected method.
method
(String
The method name.
name
,
Class<?>...
The method parameter types.
parameterTypes
)

Selects a method to which the next operations shall apply.

Method Detail

methodback to summary
public MethodConstraintMappingContext method(String name, Class<?>... parameterTypes)

Selects a method to which the next operations shall apply.

Until this method is called constraints apply on class level. After calling this method constraints apply to the specified method.

A given method may only be configured once.

Parameters
name:String

The method name.

parameterTypes:Class<?>[]

The method parameter types.

Returns:MethodConstraintMappingContext

A creational context representing the selected method.