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

public Interface ConstructorTarget

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

Facet of a constraint mapping creational context which allows to select the bean constructor to which the next operations shall apply.
Author
Gunnar Morling

Method Summary

Modifier and TypeMethod and Description
public ConstructorConstraintMappingContext

Returns:

A creational context representing the selected constructor.
constructor
(Class<?>...
The constructor parameter types.
parameterTypes
)

Selects a constructor to which the next operations shall apply.

Method Detail

constructorback to summary
public ConstructorConstraintMappingContext constructor(Class<?>... parameterTypes)

Selects a constructor 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 constructor.

A given constructor may only be configured once.

Parameters
parameterTypes:Class<?>[]

The constructor parameter types.

Returns:ConstructorConstraintMappingContext

A creational context representing the selected constructor.