org.hibernate.validator.cfg.context

## Interface TypeTarget

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

      public interface TypeTarget

  Facet of a constraint mapping creational context which allows to the select the bean type to which the next operations shall apply.
  Author:
    Kevin Pollet (C) 2011 SERLI, Gunnar Morling

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<C> TypeConstraintMappingContext<C>` | `type(Class<C> type)` Selects the type to which the next operations shall apply.

- - ### Method Detail

    - #### type

          <C> TypeConstraintMappingContext<C> type(Class<C> type)

      Selects the type to which the next operations shall apply. A given type may only be configured once.
      Type Parameters:
        `C` - The type to select.
      Parameters:
        `type` - The type to select.
      Returns:
        A creational context representing the selected type.

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