Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1693

Installed Facets lose touch with reality

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.x Future
    • 2.3.0.Final
    • Facets
    • None

      FacetX.isInstalled() will be called as soon as an Object is selected.
      if isInstalled() == true the Facet is installed on the Object and Object.hasFacet(FacetX) == true.

      When the Facet depend on a external resource, e.g. File like pom.xml, and when the pom.xml is changed outside of Forges reach, e.g. some editor/eclipse.

      Object.hasFacet(FacetX) == true is still true, even tho Facet.isInstalled() == false at this point.

      Forge should keep track of the underlying Faceted object state and reinitialize the installed Facets if it has changed since last.

      e.g.

      Object.hasFacet(X.class) { if(lastModified != lastChecked)

      {reinstall()}

      checkFacet() }.

            Unassigned Unassigned
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: