QDox
  1. QDox
  2. QDOX-194

Refactor model's Java*-files to interfaces

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.10
    • Fix Version/s: 2.0
    • Component/s: Java API
    • Labels:
      None
    • Number of attachments :
      0

      Description

      A very well known quote is: Less is more.
      For the model-classes that's for sure. Right now users see all the methods of every model, including the one which are responsible for building the model. If we only show does methods which we want to expose, the API should be much easier to read and use.
      Another advantage is that we can define different implementations. For instance: right now the JavaClass contains some code for handling the package, while this is actually part of the JavaSource. This is done to be able to create a JavaClass without source. This results is some duplicate code. My idea is to have a DefaultJavaSource and NoJavaSource implementation, but for the user it's just JavaSource and he won't have to notice any difference.

        Activity

        Hide
        Robert Scholte added a comment -

        Fixed in a lot of revisions, but they're all refactored

        Show
        Robert Scholte added a comment - Fixed in a lot of revisions, but they're all refactored
        Robert Scholte made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Robert Scholte made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Robert Scholte
            Reporter:
            Robert Scholte
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: