[forge-issues] [JBoss JIRA] (FORGE-1693) Installed Facets loose touch with reality

Aslak Knutsen (JIRA) issues at jboss.org
Fri Mar 21 13:22:10 EDT 2014


Aslak Knutsen created FORGE-1693:
------------------------------------

             Summary: Installed Facets loose touch with reality
                 Key: FORGE-1693
                 URL: https://issues.jboss.org/browse/FORGE-1693
             Project: Forge
          Issue Type: Bug
          Components: Facets
    Affects Versions: 2.3.0.Final
            Reporter: Aslak Knutsen
             Fix For: 2.x Future


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() }.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list