The Adapter integration pattern enables existing metadata repositories and their tool sets to integrate into the open metadata ecosystem. It requires the development of simple components that map between the proprietary metadata formats and the open metadata formats plus manage notifications around the activity occurring with the metadata repository.
A metadata repository needs the following capabilities to support the adapter pattern:
The API is wrapped in an OMRS Repository Connector implementation that maps open metadata repository service calls to the API of the metadata repository. The event notifications are captured and mapped into the OMRS Events by an OMRS Repository Event Mapper. The Repository Event Mapper publishes the resulting OMRS Events to the other metadata repositories in the cohort.
Figure 1 shows the adapter pattern in operation for a fictitious metadata product called XYZ. Its OMRS Connector and Event Mapper are running in a Repository Proxy. The repository proxy manages the OMRS Connector and Event Mapper and ensures they are called at appropriate times.
Figure 1: High level operation of the adapter pattern
The development steps to implement the Adapter integration pattern are:
- Determine the mapping between your metadata repository and the open metadata types.
- Create a connector that implements the OMRS Repository Connector API and maps calls to its API to calls to your repository's API.
- Create an event mapper that maps your repository's event notification to the OMRS event notification messages.