Class AppliedAnnotationObject.BuilderT
java.lang.Object
org.apache.juneau.commons.annotation.AnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.BuilderT
- Direct Known Subclasses:
AppliedAnnotationObject.BuilderTM,AppliedAnnotationObject.BuilderTMF,BeanAnnotation.Builder,HtmlLinkAnnotation.Builder,MarshalledAnnotation.Builder,RequestAnnotation.Builder,RestAnnotation.Builder
- Enclosing class:
- AppliedAnnotationObject
Builder for applied annotations targeting classes.
Adds type-safe class targeting methods to the base builder:
on(Class...)- Target by class, stored as strings inAppliedAnnotationObject.on()on(ClassInfo...)- Target by ClassInfo, stored as stringsonClass(Class...)- Target by class, stored as Class objects inAppliedOnClassAnnotationObject.onClass()onClass(ClassInfo...)- Target by ClassInfo, stored as Class objects
Example:
Notes:
- Use
on(Class...)when you want string-based matching (e.g., for configuration) - Use
onClass(Class...)when you need direct Class object references - Both can be used together on the same builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends the classes that this annotation applies to.Appends the classes that this annotation applies to.Appends the classes that this annotation applies to.Appends the classes that this annotation applies to.Methods inherited from class org.apache.juneau.commons.annotation.AppliedAnnotationObject.Builder
onMethods inherited from class org.apache.juneau.commons.annotation.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
BuilderT
Constructor.- Parameters:
annotationType- The annotation type of the annotation implementation class.
-
-
Method Details
-
on
Appends the classes that this annotation applies to.- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Appends the classes that this annotation applies to.- Parameters:
value- The values to append.- Returns:
- This object.
-
onClass
Appends the classes that this annotation applies to.- Parameters:
value- The values to append.- Returns:
- This object.
-
onClass
Appends the classes that this annotation applies to.- Parameters:
value- The values to append.- Returns:
- This object.
-