Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-170

Basic generics support should apply to parameters of event handler methods as well as getters and setters

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • 5.0.15
    • None
    • None
    • None

    Description

      The current support for JDK Generics only applies to getter and setter methods.

      It would be very useful, for the same use cases where getters and setters are useful, to allow generics inside event handler methods.

      I.e.:

      public class GenericCRUD<T>
      {
      private T _entity;

      public T getEntity()

      { return _entity; }

      public void setEntity(T entity) { _entity = entity; }

      T onPassivate() { return _entity; }

      void onActivate(T entity)

      { _entity = entity; }

      }

      This would require integrating the basic generic support directly into ComponentClassTransformation.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: