Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1214

Class generation should create abstract callback methods in the superclass and stub methods in the subclass

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0M5
    • 3.0M6, 3.0
    • None
    • None

    Description

      One problem I've had in the past is when I define a callback for a class in the modeler, but then forget to implement the callback, or misspell the callback, etc.

      Cayenne should ensure that a method is implemented at compile time.

      At the moment, I think the "right" way to do this is:

      1) Make the superclass abstract
      2) Add an abstract method in the superclass
      3) If generating the subclass, generate a stub method.

      This ensures that naming issues are caught at compile time.

      Attachments

        Activity

          People

            ongakugainochi Robert Zeigler
            ongakugainochi Robert Zeigler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: