Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-349

Allow modules to "provide" services in their module.xml

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 1.8.0.Final
    • None
    • None
    • None

      Allow module.xml files to contain content like this:

          <module name="my.module" xmlns="urn:jboss:module:1.8">
              <!-- some stuff here -->
              <provides>
                  <service name="javax.something.Whatever">
                      <with-class name="my.module.impls.WhateverImpl1"/>
                      <with-class name="my.module.impls.WhateverImpl2"/>
                  </service>
              </provides>
          </module>
      

      This can be accomplished by adding a resource loader type which only answers service load requests, using data: URLs.

              dlloyd@redhat.com David Lloyd
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: