I am currently using an annotation provided by a 3rd party library and I'm wondering if there is a way to create another 'wrapper annotation' around it so that I don't have to require all parameters.
For example I can use the library annotation like this:
@LibraryAnnotation(Parameter1, Parameter2, Parameter3)
But in my case Parameter2 and Parameter3 are always the same so I want to create an annotation that will only take in Parameter1
@MyAnnotation(Parameter1)
But will call the other annotation with all Parameters, similar to how you might create a wrapper for a 3rd party method.
@Target(value = {ElementType.ANNOTATION_TYPE})
? – Aromaticity