...
| Code Block | ||
|---|---|---|
| ||
if (Annotations.isAnnotationPresent(javax.ejb.TransactionAttribute.class, method)) {
Annotation annotation = Annotations.getAnnotation(javax.ejb.TransactionAttribute.class, method);
javax.ejb.TransactionAttribute txAttribute = (javax.ejb.TransactionAttribute)annotation;
}
|
Notes
If an annotation has an element with a default value, the reflective API will off course gives you access to it if the
annotated class/member was not specifying it.
