Class AppliedAnnotationObject.BuilderTM

Direct Known Subclasses:
ContentAnnotation.Builder, ResponseAnnotation.Builder, StatusCodeAnnotation.Builder
Enclosing class:
AppliedAnnotationObject

Builder for applied annotations targeting classes and methods.

Combines the capabilities of AppliedAnnotationObject.BuilderT and AppliedAnnotationObject.BuilderM, providing targeting for both classes and methods.

Example:

// Target both classes and methods MyAnnotation annotation = MyAnnotation .create() .on(MyClass.class) // Target class .on(MyClass.class.getMethod("myMethod")) // Target method .build();