Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2295

Tuscany should allow plugins to load their schemas instead of tuscany schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • Java-SCA-1.x
    • SCA Java Runtime
    • None
    • All

    Description

      Looking at the following code, the schema path is hardcoded, which means that plugins need to change this code everytime to load their schemas. Tuscany should allow plugins to point to their schemas without modifying this code

      // Allow privileged access to load resource. Requires RuntimePermssion in security policy.
      URL schemaURL = AccessController.doPrivileged(new PrivilegedAction<URL>() {
      public URL run()

      { return ReallySmallRuntimeBuilder.class.getClassLoader().getResource("tuscany-sca.xsd"); }

      });

      Loading schemas should be an extension point.

      Attachments

        Activity

          People

            lresende Luciano Resende
            asundar Hasan Muhammad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: