Poco::OSP

class OSPSubsystem

Library: OSP
Package: Util
Header: Poco/OSP/OSPSubsystem.h

Description

This subsystem implementation sets up the OSP runtime environment, including BundleLoader, CodeCache and ServiceRegistry.

It also defines the "clean" command line option, which forces the code cache to be cleared, and the "bundles" command line option which allows for specification of additional bundle repositories.

The following configuration properties are used:

The following configuration properties are set:

Inheritance

Direct Base Classes: Poco::Util::Subsystem

All Base Classes: Poco::RefCountedObject, Poco::Util::Subsystem

Member Summary

Member Functions: bundleLoader, cancelInit, defineOptions, handleBundles, handleClear, initialize, loadBundles, name, serviceRegistry, startBundles, uninitialize

Inherited Functions: defineOptions, duplicate, initialize, name, referenceCount, reinitialize, release, uninitialize

Constructors

OSPSubsystem

OSPSubsystem();

Creates the OSPSubsystem.

Destructor

~OSPSubsystem virtual

~OSPSubsystem();

Destroys the OSPSubsystem.

Member Functions

bundleLoader inline

BundleLoader & bundleLoader();

Returns a reference to the bundle loader.

cancelInit

void cancelInit();

Cancels initialization.

defineOptions

void defineOptions(
    Poco::Util::OptionSet & options
);

initialize

void initialize(
    Poco::Util::Application & app
);

name virtual

const char * name() const;

See also: Poco::Util::Subsystem::name()

serviceRegistry inline

ServiceRegistry & serviceRegistry();

Returns a reference to the service registry.

uninitialize virtual

void uninitialize();

See also: Poco::Util::Subsystem::uninitialize()

handleBundles protected

void handleBundles(
    const std::string & name,
    const std::string & value
);

handleClear protected

void handleClear(
    const std::string & name,
    const std::string & value
);

loadBundles protected virtual

virtual void loadBundles(
    Poco::Util::Application & app
);

Loads all bundles from all known bundle repositories.

startBundles protected virtual

virtual void startBundles(
    Poco::Util::Application & app
);

Resolves and starts all loaded bundles.