Poco::OSP::JS

class JSExtensionPoint

Library:
Package:
Header: Poco/OSP/JS/JSExtensionPoint.h

Description

An extension point for starting JavaScript scripts contained in bundles.

The following extension point attributes are supported:

  • script: path (bundle resource) to the script to be executed
  • memoryLimit: size limit for JavaScript allocated memory (default 1 MB)

Inheritance

Direct Base Classes: Poco::OSP::ExtensionPoint

All Base Classes: Poco::OSP::ExtensionPoint, Poco::RefCountedObject

Member Summary

Member Functions: handleExtension, onBundleStopped

Inherited Functions: duplicate, handleExtension, referenceCount, release, removeExtension

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < JSExtensionPoint >;

Constructors

JSExtensionPoint

JSExtensionPoint(
    BundleContext::Ptr pContext
);

Creates the JavaScript extension point.

Destructor

~JSExtensionPoint virtual

~JSExtensionPoint();

Destroys the JavaScript extension point.

Member Functions

handleExtension virtual

void handleExtension(
    Bundle::ConstPtr pBundle,
    Poco::XML::Element * pExtensionElem
);

onBundleStopped protected

void onBundleStopped(
    const void * pSender,
    Poco::OSP::BundleEvent & ev
);

Securely control IoT edge devices from anywhere   Connect a Device