Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Get annotation value on field setting

Hi,

I try to retrieve an annotation value of a field during its setting.

Exemple : 

	public class MyClass {

		@MyAnnot(test)
		public String myField;

		public void myMethod() {
			...
			// Try to get myField annotation value here
			this.myField = "newValue";
			...
		}
	}

How to obtain this information (test) without reflexion ?

Thanks,

Mickaël Rifflard
(Atos Origin)



Back to the top