Poco::OSP::JS

class ModuleFactory

Library: OSP/JS
Package: Module
Header: Poco/OSP/JS/ModuleFactory.h

Description

A factory for Poco::JS::Core::Module objects.

Member Summary

Member Functions: context, createModule, init, initImpl

Constructors

ModuleFactory

ModuleFactory();

Creates the ModuleFactory.

Destructor

~ModuleFactory virtual

virtual ~ModuleFactory();

Destroys the ModuleFactory.

Member Functions

context inline

Poco::OSP::BundleContext::Ptr context() const;

Returns the context. The pointer is guaranteed to be valid.

createModule virtual

virtual Poco::JS::Core::Module * createModule() = 0;

Create a Module object.

init

void init(
    Poco::OSP::BundleContext::Ptr pContext
);

Initializes the factory with the given BundleContext.

initImpl protected virtual

virtual void initImpl();

Add extra initialization code by overriding this method in your subclass.

Securely control IoT edge devices from anywhere   Connect a Device