aboutsummaryrefslogtreecommitdiff
path: root/docs/developer/uml/ServiceLocationStrategyClassDiagram.puml
blob: 4ef2c52fd0c99f76766173ab1bce57f61154b82a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
'-------------------------------------------------------------------------------
' Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
'
' SPDX-License-Identifier: BSD-3-Clause
'
'-------------------------------------------------------------------------------

@startuml

class service_location_strategy
{
	{abstract} service_context query(service_name)
}

class service_locator <<singleton>>
{
	void init()
	void register_strategy(strategy)
	service_context query(service_name)
}

service_locator --> "0..*" service_location_strategy

@enduml