Class AppliedAnnotationObject.BuilderM

Direct Known Subclasses:
RestDeleteAnnotation.Builder, RestDestroyAnnotation.Builder, RestEndCallAnnotation.Builder, RestGetAnnotation.Builder, RestInitAnnotation.Builder, RestInjectAnnotation.Builder, RestOpAnnotation.Builder, RestOptionsAnnotation.Builder, RestPatchAnnotation.Builder, RestPostAnnotation.Builder, RestPostCallAnnotation.Builder, RestPostInitAnnotation.Builder, RestPreCallAnnotation.Builder, RestPutAnnotation.Builder, RestStartCallAnnotation.Builder
Enclosing class:
AppliedAnnotationObject

Builder for applied annotations targeting methods.

Adds method targeting capabilities to the base builder:

Example:

// Target specific methods Method method1 = MyClass.class.getMethod("myMethod"); Method method2 = MyClass.class.getMethod("otherMethod"); MyAnnotation annotation = MyAnnotation .create() .on(method1, method2) .build();

  • Constructor Details

    • BuilderM

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