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

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

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.8.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dmlloyd David Lloyd
                  Reporter:
                  dmlloyd David Lloyd
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: