Library: OSP
Package: Util
Header: Poco/OSP/OSPSubsystem.h
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:
Direct Base Classes: Poco::Util::Subsystem
All Base Classes: Poco::RefCountedObject, Poco::Util::Subsystem
Member Functions: bundleLoader, cancelInit, defineOptions, handleBundles, handleClear, initialize, loadBundles, name, serviceRegistry, startBundles, uninitialize
Inherited Functions: defineOptions, duplicate, initialize, name, referenceCount, reinitialize, release, uninitialize
OSPSubsystem();
Creates the OSPSubsystem.
~OSPSubsystem();
Destroys the OSPSubsystem.
BundleLoader & bundleLoader();
Returns a reference to the bundle loader.
void cancelInit();
Cancels initialization.
void defineOptions(
Poco::Util::OptionSet & options
);
void initialize(
Poco::Util::Application & app
);
const char * name() const;
See also: Poco::Util::Subsystem::name()
ServiceRegistry & serviceRegistry();
Returns a reference to the service registry.
void uninitialize();
See also: Poco::Util::Subsystem::uninitialize()
void handleBundles(
const std::string & name,
const std::string & value
);
void handleClear(
const std::string & name,
const std::string & value
);
virtual void loadBundles(
Poco::Util::Application & app
);
Loads all bundles from all known bundle repositories.
virtual void startBundles(
Poco::Util::Application & app
);
Resolves and starts all loaded bundles.