AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Static Public Member Functions | List of all members
alexaClientSDK::propertiesInterfaces::test::StubPropertiesFactory Class Reference

In-memory stub implementation of PropertiesFactoryInterface. More...

#include <StubPropertiesFactory.h>

Inheritance diagram for alexaClientSDK::propertiesInterfaces::test::StubPropertiesFactory:
Inheritance graph
[legend]
Collaboration diagram for alexaClientSDK::propertiesInterfaces::test::StubPropertiesFactory:
Collaboration graph
[legend]

Public Member Functions

PropertiesFactoryInterface functions.
std::shared_ptr< PropertiesInterfacegetProperties (const std::string &configUri) noexcept override
 Create properties interface for a given component and namespace. More...
 
- Public Member Functions inherited from alexaClientSDK::propertiesInterfaces::PropertiesFactoryInterface
virtual ~PropertiesFactoryInterface ()=default
 

Static Public Member Functions

static std::shared_ptr< StubPropertiesFactorycreate () noexcept
 ! Creates new factory instance. More...
 

Detailed Description

In-memory stub implementation of PropertiesFactoryInterface.

In memory implementation for PropertiesFactoryInterface. This class is not thread safe.

Member Function Documentation

◆ create()

static std::shared_ptr<StubPropertiesFactory> alexaClientSDK::propertiesInterfaces::test::StubPropertiesFactory::create ( )
staticnoexcept

! Creates new factory instance.

This method provides a new property factory instance. This instance has own in-memory storage for all properties.

Returns
New object instance.

◆ getProperties()

std::shared_ptr<PropertiesInterface> alexaClientSDK::propertiesInterfaces::test::StubPropertiesFactory::getProperties ( const std::string &  uri)
overridevirtualnoexcept

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.

Parameters
uriResource URI. The format must conform to RFC3986, but handling is implementation-specific.
Returns
Reference to properties adapter or nullptr on error.

Implements alexaClientSDK::propertiesInterfaces::PropertiesFactoryInterface.


The documentation for this class was generated from the following file:

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0