Class AppliedAnnotationObject.Builder

java.lang.Object
org.apache.juneau.commons.annotation.AnnotationObject.Builder
org.apache.juneau.commons.annotation.AppliedAnnotationObject.Builder
Direct Known Subclasses:
AppliedAnnotationObject.BuilderC, AppliedAnnotationObject.BuilderM, AppliedAnnotationObject.BuilderMF, AppliedAnnotationObject.BuilderT
Enclosing class:
AppliedAnnotationObject

Builder for AppliedAnnotationObject objects.

Provides string-based targeting via the on(String...) method.

Example:

// Target specific classes and methods by name MyAnnotation annotation = MyAnnotation .create() .on("com.example.MyClass") .on("com.example.MyClass.myMethod") .build();

See Also:
  • Constructor Details

    • Builder

      public Builder(Class<? extends Annotation> annotationType)
      Constructor.
      Parameters:
      annotationType - The annotation type of the annotation implementation class.
  • Method Details