xentara-plugin v2.0.4
The Xentara Plugin Framework
Loading...
Searching...
No Matches
xentara::process::ServiceProvider::Environment Class Referenceabstract

The actual skill (formerly called “service provider environment”) More...

#include <xentara/process/ServiceProvider.hpp>

+ Inheritance diagram for xentara::process::ServiceProvider::Environment:

Public Member Functions

virtual auto createMicroservice (const MicroserviceClass &elementClass, plugin::SharedFactory< Microservice > &factory) -> std::shared_ptr< Microservice >=0
 Called by the framework to create a new top-level element.
 
Virtual Overrides for skill::Skill


auto createElement (const skill::Element::Class &elementClass, skill::ElementFactory &factory) -> std::shared_ptr< skill::Element > final
 Virtual overide for skill::Skill::createElement()
 
- Public Member Functions inherited from xentara::skill::Skill
virtual ~Skill ()=0
 Virtual destructor.
 
virtual auto loadConfig (utils::json::decoder::Object &jsonObject, config::Context &context) -> void
 Called by the framework to load the skill’s configuration from a JSON object.
 
- Public Member Functions inherited from xentara::utils::tools::DisableCopy
constexpr DisableCopy () noexcept=default
 
 DisableCopy (const DisableCopy &)=delete
 
DisableCopyoperator= (const DisableCopy &)=delete
 

Additional Inherited Members

- Static Public Member Functions inherited from xentara::skill::Skill
static auto persistentDataPath (const std::filesystem::path &skillSubdirectory, const std::filesystem::path &subPath) -> std::filesystem::path
 Makes a path suitable for storing persistent data for a skill.
 

Detailed Description

The actual skill (formerly called “service provider environment”)

Member Function Documentation

◆ createElement()

auto xentara::process::ServiceProvider::Environment::createElement ( const skill::Element::Class elementClass,
skill::ElementFactory factory 
) -> std::shared_ptr< skill::Element >
finalvirtual

Virtual overide for skill::Skill::createElement()

This function calls createMicroservice() if elementClass is derived from MicroserviceClass, or returns nullptr otherwise.

Implements xentara::skill::Skill.

◆ createMicroservice()

virtual auto xentara::process::ServiceProvider::Environment::createMicroservice ( const MicroserviceClass elementClass,
plugin::SharedFactory< Microservice > &  factory 
) -> std::shared_ptr< Microservice >
pure virtual

Called by the framework to create a new top-level element.