I'm seeing how to get custom annnotation class object from AccessibleObject in java like this.
AccessibleObject m = ...
Named n = m.getAnnotation(Named.class);
But, I don't know, given an java.lang.annotation.Annotation annotation
how to convert this into custom class object.
Does java provides any similar utility to do casting?
Aucun commentaire:
Enregistrer un commentaire