Amardeep Bhattal created ARIES-929:
--------------------------------------

             Summary: install subsystems from IDirectory objects
                 Key: ARIES-929
                 URL: https://issues.apache.org/jira/browse/ARIES-929
             Project: Aries
          Issue Type: Improvement
          Components: Subsystem
    Affects Versions: 0.4
         Environment: n/a
            Reporter: Amardeep Bhattal
             Fix For: 0.4


Subsystems may be installed by calling Subsystem.install(String) (and also the 
install(String, InputStream) method). The code treats the given location string 
as a url string which can be opened to obtain installation artifacts, unless 
the uri has a scheme of "subsystem" in which case an alternative leg of code is 
executed to install a persisted subsystem.

It would be useful to extend this mechanism to add a new scheme ("idirfinder") 
which is also treated in special way; in this case the URI is passed to a 
service which can return a corresponding IDirectory object that matches the 
given URI, and then installs a subsystem using the contents of the IDirectory. 
To achieve this, a modification to the subsystem install code is required 
(though not extensive as IDirectory objects are already used internally during 
install), and an interface for the IDirectory finder service must be defined.

Adding this functionality would allow installation of subsystems from a variety 
of sources, including expanded archive, loose config (installation artifacts 
distributed across disk as produced by IDEs), in-memory etc as the only 
requirement is then to provide an IDirectory front-end to the content. The 
alternative of gathering the content and producing an archive file is not 
desirable due to the overhead this entails, particularly when an IDE is being 
used for rapid development, and small changes are being made frequently.


--
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

Reply via email to