Class 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:

Example:

// Target classes using type-safe references MyAnnotation annotation = MyAnnotation .create() .on(MyClass.class, MyOtherClass.class) // Stored as strings .onClass(ThirdClass.class) // Stored as Class object .build();

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