pip_services3_commons.refer.Referencer module
pip_services3_commons.refer.Referencer
Referencer 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.Referencer.
Referencer
Bases:
object
Helper class that sets and unsets references to components.
-
static
set_references
(references: pip_services3_commons.refer.IReferences.IReferences, components: List[Any]) Sets references to multiple components.
To set references components must implement
IReferenceable
interface. If they don’t the call to this method has no effect.- Parameters
references – the references to be set.
components – a list of components to set the references to.
-
static
set_references_for_one
(references: pip_services3_commons.refer.IReferences.IReferences, component: Any) Sets references to specific component.
To set references components must implement
IReferenceable
interface. If they don’t the call to this method has no effect.- Parameters
references – the references to be set.
component – the component to set references to.
-
static
unset_references
(components: List[Any]) Unsets references in multiple components.
To unset references components must implement
IUnreferenceable
interface. If they don’t the call to this method has no effect.- Parameters
components – the list of components, whose references must be cleared.
-
static
unset_references_for_one
(component: Any) Unsets references in specific component.
To unset references components must implement
IUnreferenceable
interface. If they don’t the call to this method has no effect.- Parameters
component – the component to unset references.
-
static