[jbosstools-issues] [JBoss JIRA] (JBIDE-21205) Modify runtime detection to ensure a detector is only asked to initialize runtime definitions it created

Rob Stryker (JIRA) issues at jboss.org
Tue Dec 8 12:51:00 EST 2015


Rob Stryker created JBIDE-21205:
-----------------------------------

             Summary: Modify runtime detection to ensure a detector is only asked to initialize runtime definitions it created
                 Key: JBIDE-21205
                 URL: https://issues.jboss.org/browse/JBIDE-21205
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: runtime-detection
    Affects Versions: 4.3.0.Beta2
            Reporter: Rob Stryker
            Priority: Minor


See https://issues.jboss.org/browse/JBIDE-21193 for some background. 

A runtime detector is asked to initialize all RuntimeDefinition objects, not just ones it created.  While this "works" if you expect a detector to know all type-strings that it creates RuntimeDefinition objects using, it is still less than optimal and the workflow is a bit counter-intuitive. 

Suggestion is to add a new constructor to RuntimeDefinition and add abstract method for creating those definitions to AbstractRuntimeDetectorDelegate  to instantiate these definitions. 

Care should be taken since this is all public API and used in Fuse, cdk, servertools, and other locations. It may not be possible to compel consumers to use the new API at all, and so the benefit may be zero. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list