public class DefaultConstraintMapping extends Object implements ConstraintMapping
ConstraintMapping
.Constructor and Description |
---|
DefaultConstraintMapping() |
Modifier and Type | Method and Description |
---|---|
ConstraintMappingContext |
getContext() |
<C> TypeConstraintMappingContext<C> |
type(Class<C> beanClass)
Starts defining constraints on the specified bean class.
|
public final <C> TypeConstraintMappingContext<C> type(Class<C> beanClass)
ConstraintMapping
type
in interface ConstraintMapping
C
- The type to be configured.beanClass
- The bean class on which to define constraints. All constraints defined after calling this method
are added to the bean of the type beanClass
until the next call of type
.public ConstraintMappingContext getContext()
Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved