0

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.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.