jeudi 4 juin 2015

How to find property name by accessor method name with popular library?

I have my custom annotation, which I am applying to some getters and/or setters.

Not I want some processing. I will find annotated methods and then wish to calculate property name of this method. I.e. I need to cut-out the "get" or "set" or "is" prefix and then do some decapitalization.

Are there some common library like Spring or Apache BeanUtils, which provide all these functions for me?





Aucun commentaire:

Enregistrer un commentaire