AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Factory interface to component properties. More...
#include <PropertiesFactoryInterface.h>
Public Member Functions | |
virtual | ~PropertiesFactoryInterface ()=default |
virtual std::shared_ptr< PropertiesInterface > | getProperties (const std::string &uri) noexcept=0 |
Create properties interface for a given component and namespace. More... | |
Factory interface to component properties.
This interface provide a way to construct component-specific key-value storage. The storage is identified by configuration URI (Uniform Resource Identifier) to disambiguate properties between different components. The format of configuration URI is implementation specific, but must conform to RFC3986.
Application may operate with a single or multiple instances of this interface, that use different implementation, or provide access to different physical resources for access control.
|
virtualdefault |
Destructor.
|
pure virtualnoexcept |
Create properties interface for a given component and namespace.
This method creates interface to access component specific configuration. The implementation maps URI into implementation-specific configuration container, and URI can be treated as a file location, database or table name, or region in non-volatile memory.
The method may return the same or different instances for the same configuration URI, but if different instances are returned, all of them must provide access to the same configuration container.
uri | Resource URI. The format must conform to RFC3986, but handling is implementation-specific. |
Implemented in alexaClientSDK::propertiesInterfaces::test::StubPropertiesFactory.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0