How to model Service Providers

In addition to services and components JEAF also offers an additional mechanism to support technical services, so called Service Providers. Similar to services and components it’s also possible to define service providers in the UML model. To do so stereotypes «JEAFServiceProvider» and «JEAFServiceProviderImpl» have to be used.

Diagram above shows how to model a service provider interface and its implementation in the UML model. There is no need to provide any additional information beside applying the stereotype itself. For defining a service provider interface UML type interface has to be use, for the implementation element type class. Of course operations that are defined on the interface do not have to be defined a second time for the service provider implementation.

Just like components., it’s also possible to define configuration parameters for service provider implementations. They have to be modeled as attributes on the service provider implementation class.

 

For further information please also refer to: