File Information
Library: OSP
Package: BundleInstallerService
Header: Poco/OSP/BundleInstallerService.h
Description
The BundleInstallerService allows a bundle to install other bundles, either from a stream or from a URI.
The service name of the BundleInstallerService is "osp.core.installer".
Inheritance
Direct Base Classes: Service
All Base Classes: Service, Poco::RefCountedObject
Member Summary
Member Functions: installBundle, isA, replaceBundle, type
Inherited Functions: duplicate, isA, referenceCount, release, type
Types Aliases
ConstPtr
Ptr
using Ptr = Poco::AutoPtr < BundleInstallerService >;
Constructors
BundleInstallerService
BundleInstallerService(
BundleRepository & repository
);
Creates the BundleInstallerService, using the given BundleRepository.
Destructor
~BundleInstallerService
Destroys the BundleInstallerService.
Member Functions
installBundle
Bundle::Ptr installBundle(
const std::string & uri
);
Installs a bundle from the given URI. The Poco::URIStreamOpener class is used to open a stream for the given URI.
Returns a pointer to the installed bundle.
installBundle
Bundle::Ptr installBundle(
std::istream & istr
);
Installs a bundle from the given stream.
Returns a pointer to the installed bundle.
isA
bool isA(
const std::type_info & otherType
) const;
See also: Poco::OSP::Service::isA()
replaceBundle
Bundle::Ptr replaceBundle(
const std::string & symbolicName,
std::istream & istr
);
Upgrades or replaces a bundle from the given stream.
Returns a pointer to the installed bundle.
replaceBundle
Bundle::Ptr replaceBundle(
const std::string & symbolicName,
const std::string & uri
);
Upgrades or replaces a bundle from the given URI. The Poco::URIStreamOpener class is used to open a stream for the given URI.
Returns a pointer to the installed bundle.
type
const std::type_info & type() const;
See also: Poco::OSP::Service::type()
Variables
SERVICE_NAME
static const std::string SERVICE_NAME;