Class AppliedAnnotationObject.BuilderTM
java.lang.Object
org.apache.juneau.commons.annotation.AnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.BuilderT
org.apache.juneau.commons.annotation.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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAppends the methods that this annotation applies to.The targets this annotation applies to.on(MethodInfo... value) Appends the methods that this annotation applies to.Appends the classes that this annotation applies to.Methods inherited from class org.apache.juneau.commons.annotation.AppliedAnnotationObject.BuilderT
on, on, onClassMethods inherited from class org.apache.juneau.commons.annotation.AnnotationObject.Builder
getAnnotationType
-
Constructor Details
-
BuilderTM
Constructor.- Parameters:
annotationType- The annotation type of the annotation implementation class.
-
-
Method Details
-
on
Appends the methods that this annotation applies to.- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Appends the methods that this annotation applies to.- Parameters:
value- The values to append.- Returns:
- This object.
-
on
Description copied from class:AppliedAnnotationObject.BuilderThe targets this annotation applies to.- Overrides:
onin classAppliedAnnotationObject.Builder- Parameters:
value- The targets this annotation applies to.- Returns:
- This object.
-
onClass
Description copied from class:AppliedAnnotationObject.BuilderTAppends the classes that this annotation applies to.- Overrides:
onClassin classAppliedAnnotationObject.BuilderT- Parameters:
value- The values to append.- Returns:
- This object.
-