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.
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationWork(AnnotationInfo annotation, AnnotationApplier applier) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidCallsAnnotationApplier.apply(AnnotationInfo, Object)on the specified builder.booleanReturnstrue 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
-
apply
CallsAnnotationApplier.apply(AnnotationInfo, Object)on the specified builder.A no-op if
AnnotationApplier.canApply(Object)returnsfalse .- Parameters:
builder- The builder.
-
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.
-