Interface MethodTarget
-
- All Known Subinterfaces:
ContainerElementConstraintMappingContext,CrossParameterConstraintMappingContext,ParameterConstraintMappingContext,PropertyConstraintMappingContext,ReturnValueConstraintMappingContext,TypeConstraintMappingContext<C>
- All Known Implementing Classes:
ContainerElementConstraintMappingContextImpl,TypeConstraintMappingContextImpl
public interface MethodTargetFacet of a constraint mapping creational context which allows to select the bean method to which the next operations shall apply.- Author:
- Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI, Gunnar Morling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodConstraintMappingContextmethod(String name, Class<?>... parameterTypes)Selects a method to which the next operations shall apply.
-
-
-
Method Detail
-
method
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- The method name.parameterTypes- The method parameter types.- Returns:
- A creational context representing the selected method.
-
-