T
- the object to analyze that may be annotatedpublic class AnnotationConditionProvider<T> extends Object implements ConditionProvider<Class<?>,T>
RequiredProperties
, RequiredProperty
,
RequiredClasses
and RequiredClass
for more information about
the annotations.
If no condition annotation is present on the source object, then a condition that always evaluates to true is returned.
Constructor and Description |
---|
AnnotationConditionProvider(PropertyResolver propertyResolver)
Initializes with a
PropertyResolver instance. |
Modifier and Type | Method and Description |
---|---|
Condition<T> |
provide(Class<?> source)
Analyzes the source object and provides a condition that will be later
evaluated on another object.
|
public AnnotationConditionProvider(PropertyResolver propertyResolver)
PropertyResolver
instance. The property
resolver is used by RequiredPropertiesAnnotationProvider
and
RequiredPropertyAnnotationProvider
in order to check if property
exists in the provided property resolver.propertyResolver
- the property resolverpublic Condition<T> provide(Class<?> source)
ConditionProvider
provide
in interface ConditionProvider<Class<?>,T>
source
- the source object to analyzeCopyright © 2021. All rights reserved.