org.hibernate.validator.cfg.context

## Interface ConstructorTarget

- All Known Subinterfaces:
    CrossParameterConstraintMappingContext, ParameterConstraintMappingContext, PropertyConstraintMappingContext, ReturnValueConstraintMappingContext, TypeConstraintMappingContext<C>
  All Known Implementing Classes:
    CrossParameterConstraintMappingContextImpl, ParameterConstraintMappingContextImpl, PropertyConstraintMappingContextImpl, ReturnValueConstraintMappingContextImpl, TypeConstraintMappingContextImpl

      public interface ConstructorTarget

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

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ConstructorConstraintMappingContext` | `constructor(Class<?>... parameterTypes)` Selects a constructor to which the next operations shall apply.

- - ### Method Detail

    - #### constructor

          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` - The constructor parameter types.
      Returns:
        A creational context representing the selected constructor.

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved