Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
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.