Interfaces and factory methods for loading Clover database

XMLWordPrintable

      Problem:

      Database entities are already in c.a.c.api.registry package.

      However, in order to load the database you have to call an inner class, for example:

      import com.atlassian.clover.CloverDatabase;      // XXX internal class
      import com.atlassian.clover.CoverageDataSpec; // XXX internal class
      import com.atlassian.clover.api.registry.ProjectInfo;
      // ...
      CloverDatabase db = CloverDatabase.loadWithCoverage(args[0], new CoverageDataSpec());
      ProjectInfo projectInfo = db.getRegistry().getProject();
      

      Fix:

      Create proper interfaces and a factory hiding the CoverageDataSpec and CloverDatabase.

            Assignee:
            Unassigned
            Reporter:
            Marek Parfianowicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: