Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

Service interfaces types



There are two kinds of Services interface for a Module:
  • Services for which the Module is a provider
  • Services for which the Module is a subscriber

Service providers

A provider is a Module which can invoke a Service. Typically, the way a provider can be used is:
  • Setting the values of datas defined for the Service
  • Invoke the Service
The subscribers will be notified of the Service invocation.

Service subscribers

A subscriber is a Module which is notified from a Service invocation. Typically, the way a subscriber can be used is:
  • Being notified from the Service invocation
  • Getting the values of datas defined for the Service
Note that a module which is listening to a Service is very similar to a service subscriber.

Service interfaces correspondance


Example

For example, in the following case:
      <applications>
         <application name="application">
            <modules>
               <module name="myModule1" >
                  <interfaces>
                     <publish service="publishService" />
                     <eventReceived service="eventService" />
                  </interfaces>
               </module>
               <module name="myModule2" >
                  <interfaces>
                     <subscribe service="publishService" />
                     <eventSend service="eventService" />
                  </interfaces>
               </module>
         </application>
      </applications>
In that case:
  • The module myModule1 is a provider for the publishService Service and a subscriber for the eventService Service
  • The module myModule2 is a provider for the eventService Service and a subscriber for the publishService Service

See also


Categories: concepts

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence