Tapestry 5
  1. Tapestry 5
  2. TAP5-1396

Invocation class should provide access to the annotations placed on the method beeing invoked

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.4
    • Fix Version/s: 5.3
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      It can be useful to know what annotations the invoked method has. Currently the Invocation class that is given to the advise method doesn't expose this information.

        Activity

        Hide
        Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #279 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/279/)
        TAP5-1396: ComponentMethodInvocation now also provides access to method annotations.

        Show
        Hudson added a comment - Integrated in tapestry-5.2-freestyle #279 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/279/ ) TAP5-1396 : ComponentMethodInvocation now also provides access to method annotations.
        Hide
        Igor Drobiazko added a comment - - edited

        ComponentMethodInvocation still doesn't provide method annotations.

        Show
        Igor Drobiazko added a comment - - edited ComponentMethodInvocation still doesn't provide method annotations.
        Hide
        Hudson added a comment -

        Integrated in tapestry-5.2-freestyle #278 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/278/)
        TAP5-1396: Invocation class should provide access to the annotations placed on the method beeing invoked

        Show
        Hudson added a comment - Integrated in tapestry-5.2-freestyle #278 (See https://hudson.apache.org/hudson/job/tapestry-5.2-freestyle/278/ ) TAP5-1396 : Invocation class should provide access to the annotations placed on the method beeing invoked
        Hide
        Igor Drobiazko added a comment -

        Added new method:

        <T extends Annotation> T getMethodAnnotation(Class<T> annotationClass);

        which returns the annotation, placed on the method being invoked, for the specified type.

        Feel free to reopen the issue, if you need more.

        Show
        Igor Drobiazko added a comment - Added new method: <T extends Annotation> T getMethodAnnotation(Class<T> annotationClass); which returns the annotation, placed on the method being invoked, for the specified type. Feel free to reopen the issue, if you need more.

          People

          • Assignee:
            Igor Drobiazko
            Reporter:
            Hugo Palma
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development