pip_services3_commons.refer.Reference module

pip_services3_commons.refer.Reference

Reference component implementation

copyright

Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.

license

MIT, see LICENSE for more details.

class pip_services3_commons.refer.Reference.Reference(locator: Any, component: Any)

Bases: object

Contains a reference to a component and locator to find it. It is used by References to store registered component references.

get_component() → Any

Gets the stored component reference.

Returns

the component’s references.

get_locator() → Any

Gets the stored component locator.

Returns

the component’s locator.

match(locator: Any)bool

Matches locator to this reference locator. Descriptors are matched using equal method. All obj locator types are matched using direct comparison.

Parameters

locator – the locator to match.

Returns

true if locators are matching and false it they don’t.