I am using MethodHandle
of java 7 to set/get attribute value of a POJO class(instead of conventional getters and setters). I am using MethodHandle.invoke()
for the same.
My application needs to know the attribute name associated with the above invocation.
Is there a way to get the attribute name involved with the MethodHandle
.
If it is of type Method then it is possible with reflection. But can anyone tell me how to do the same in MethodHandle.