public class ObjectIdAnnotationFinder
extends java.lang.Object
Constructor and Description |
---|
ObjectIdAnnotationFinder() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ObjectID> |
findAnnotations(java.lang.Class<?> clazz,
java.util.List<ObjectID> result)
Finds ObjectID annotation in a hierarchy of classes using recursion.
|
ObjectID |
get(java.lang.Class<?> clazz)
Returns the first ObjectID annotation found in the class hierarchy.
|
ObjectID |
get(java.lang.Object o)
Returns the first ObjectID annotation found in the object hierarchy.
|
public ObjectID get(java.lang.Object o)
o
- target objectpublic ObjectID get(java.lang.Class<?> clazz)
clazz
- target class