Add annotation if target supertype exists
ProprietaryAdds an annotation to a class if it extends or implements a specified target type.
io. moderne. java. dropwizard. boot. annotation. AddClassAnnotationIfSuperTypeExistsRequired
The annotation that should be added.
The supertype that should be looked for.
Optional
annotateInnerClassesBoolean
Whether to also annotate inner classes of the matched class
mod run . --recipe= io. moderne. java. dropwizard. boot. annotation. AddClassAnnotationIfSuperTypeExists \
-P annotationToAdd= org. springframework. stereotype. Component \
-P targetSupertypeName= javax. ws. rs. PathInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.