Extract destinations logic into a new class

Move the logic for creating and querying the destinations to a new
specific class called DestinationsCollection.

Because of not being linked to any specific implementation of the
remote destination, enable other plugins (e.g. pull-replication) to
consume the same replication.config for other purposes.

Feature: Issue 11425
Change-Id: I253a6d94d58efb30ece8624eb0e757193b09b8c1
11 files changed
tree: 00d37f0c665b22f4ab5d50f7d292e9f4ed4a9103
  1. .settings/
  2. src/
  3. .gitignore
  4. .mailmap
  5. BUILD
  6. LICENSE