Interface ConstructorTarget
-
- All Known Subinterfaces:
ContainerElementConstraintMappingContext,CrossParameterConstraintMappingContext,ParameterConstraintMappingContext,PropertyConstraintMappingContext,ReturnValueConstraintMappingContext,TypeConstraintMappingContext<C>
- All Known Implementing Classes:
ContainerElementConstraintMappingContextImpl,TypeConstraintMappingContextImpl
public interface ConstructorTargetFacet 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConstructorConstraintMappingContextconstructor(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.
-
-