Package org.apache.juneau
Class AnnotationWork
java.lang.Object
org.apache.juneau.AnnotationWork
A unit of work for applying an annotation to a context builder.
Consists of a pair of objects:
AnnotationInfo
- The annotation being applied.AnnotationApplier
- The applier for that annotation.
See Also:
-
Constructor Summary
ConstructorDescriptionAnnotationWork
(AnnotationInfo annotation, AnnotationApplier applier) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
CallsAnnotationApplier.apply(AnnotationInfo, Object)
on the specified builder.boolean
Returnstrue if the annotation in this work can be applied to the specified builder.
-
Constructor Details
-
AnnotationWork
Constructor.- Parameters:
annotation
- The annotation being applied.applier
- The applier for that annotation.
-
-
Method Details
-
canApply
Returnstrue if the annotation in this work can be applied to the specified builder.- Parameters:
builder
- The builder.- Returns:
true if the annotation in this work can be applied to the specified builder.
-
apply
CallsAnnotationApplier.apply(AnnotationInfo, Object)
on the specified builder.A no-op if
AnnotationApplier.canApply(Object)
returnsfalse .- Parameters:
builder
- The builder.
-