I have an interface and a bunch of classes implementing that interface. I want to add @Priority(xxx) annotation to all these classes with changing value as depicted below.
public interface IMyInterface{}
Before :
public classA implements IMyInterface{}
public classB implements IMyInterface{}
What I need:
@Priority(1)
public classA implements IMyInterface{}
@Priority(2)
public classB implements IMyInterface{}
What i tried so far:
declare @type: com.package.* : @Priority(999);
I am able to add annotations with same value with above approach but i need to add different values.
Any leads on how to achieve this would be very helpful.