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:
- osp.bundleRepository: list of directories containing bundles (defaults to ${application.dir}bundles)
- osp.codeCache: location of code cache directory (defaults to ${application.dir}codeCache)
- osp.language: language used for localization (overrides the system default)
- osp.data the directory where temporary and persistent data for bundles is stored (defaults to ${application.dir}data)
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
~OSPSubsystem();
Destroys the OSPSubsystem.
Member Functions
bundleLoader
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
const char * name() const;
See also: Poco::Util::Subsystem::name()
serviceRegistry
ServiceRegistry & serviceRegistry();
Returns a reference to the service registry.
uninitialize
void uninitialize();
See also: Poco::Util::Subsystem::uninitialize()
handleBundles
void handleBundles(
const std::string & name,
const std::string & value
);
handleClear
void handleClear(
const std::string & name,
const std::string & value
);
loadBundles
virtual void loadBundles(
Poco::Util::Application & app
);
Loads all bundles from all known bundle repositories.
startBundles
virtual void startBundles(
Poco::Util::Application & app
);
Resolves and starts all loaded bundles.