Julian Hall | e76ade8 | 2020-11-25 03:07:21 +0100 | [diff] [blame] | 1 | '------------------------------------------------------------------------------- |
| 2 | ' Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. |
| 3 | ' |
| 4 | ' SPDX-License-Identifier: BSD-3-Clause |
| 5 | ' |
| 6 | '------------------------------------------------------------------------------- |
| 7 | |
| 8 | @startuml |
| 9 | |
| 10 | class service_location_strategy |
| 11 | { |
| 12 | {abstract} service_context query(service_name) |
| 13 | } |
| 14 | |
| 15 | class service_locator <<singleton>> |
| 16 | { |
| 17 | void init() |
| 18 | void register_strategy(strategy) |
| 19 | service_context query(service_name) |
| 20 | } |
| 21 | |
| 22 | service_locator --> "0..*" service_location_strategy |
| 23 | |
| 24 | @enduml |