public class AnnotationsManager extends Object
Constructor and Description |
---|
AnnotationsManager(ApacheValidatorFactory validatorFactory) |
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
buildProxyFor(A instance) |
<A extends Annotation> |
buildProxyFor(Class<A> type) |
static <T extends Annotation> |
getAnnotation(AnnotatedElement e,
Class<T> annotationClass) |
Annotation[] |
getComposingConstraints(Annotation a)
Retrieve the composing constraints for the specified constraint
Annotation . |
static <T extends Annotation> |
getDeclaredAnnotationsByType(AnnotatedElement e,
Class<T> annotationClass) |
static Annotation[] |
getDeclaredConstraints(Meta<?> meta)
Accounts for
Constraint meta-annotation AND Repeatable
constraint annotations. |
static boolean |
isAnnotationDirectlyPresent(AnnotatedElement e,
Class<? extends Annotation> t) |
boolean |
isComposed(Annotation a)
Learn whether
a is composed. |
static Map<String,Object> |
readAttributes(Annotation a) |
<A extends Annotation> |
supportedTargets(Class<A> constraintType)
Get the supported targets for
constraintType . |
void |
validateConstraintDefinition(Class<? extends Annotation> type) |
public AnnotationsManager(ApacheValidatorFactory validatorFactory)
public static Map<String,Object> readAttributes(Annotation a)
public static boolean isAnnotationDirectlyPresent(AnnotatedElement e, Class<? extends Annotation> t)
public static <T extends Annotation> T getAnnotation(AnnotatedElement e, Class<T> annotationClass)
public static <T extends Annotation> T[] getDeclaredAnnotationsByType(AnnotatedElement e, Class<T> annotationClass)
public static Annotation[] getDeclaredConstraints(Meta<?> meta)
Constraint
meta-annotation AND Repeatable
constraint annotations.meta
- public void validateConstraintDefinition(Class<? extends Annotation> type)
public Annotation[] getComposingConstraints(Annotation a)
Annotation
.a
- Annotation
[]public boolean isComposed(Annotation a)
a
is composed.a
- boolean
public <A extends Annotation> Set<javax.validation.constraintvalidation.ValidationTarget> supportedTargets(Class<A> constraintType)
constraintType
.constraintType
- Set
of ValidationTarget
public <A extends Annotation> AnnotationProxyBuilder<A> buildProxyFor(Class<A> type)
public <A extends Annotation> AnnotationProxyBuilder<A> buildProxyFor(A instance)
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.