Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The exact mechanism for a component determining the consumes and provides for a service unit is dependent on the component and how it handles service units,  however the tooling does provide that a component can provide the configuration element serviceUnitAnalyzer this will refer to a classname within the component packegpackage.

The class defined in the serviceUnitAnalyzer needs to implement the interface ServiceUnitAnalyzer which is defined in the servicemix-common jar,  it has a simple init method which is called and passed the exploed (source) service unit and then methods that it returns a list of Consumes and Provides.  This informaiton is taken and used by the JBI plugin during the creation of the service unit for the component to add in consumes and provides.  While this information isn't needed for the JBI specification is it key to providing core information for tooling.