Library: OSP
Package: BundleInstallerService
Header: Poco/OSP/BundleInstallerService.h
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".
Direct Base Classes: Service
All Base Classes: Service, Poco::RefCountedObject
Member Functions: installBundle, isA, replaceBundle, type
Inherited Functions: duplicate, isA, referenceCount, release, type
typedef Poco::AutoPtr < BundleInstallerService > Ptr;
BundleInstallerService(
BundleRepository & repository
);
Creates the BundleInstallerService, using the given BundleRepository.
Destroys the BundleInstallerService.
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.
Bundle::Ptr installBundle(
std::istream & istr
);
Installs a bundle from the given stream.
Returns a pointer to the installed bundle.
bool isA(
const std::type_info & otherType
) const;
See also: Poco::OSP::Service::isA()
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.
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.
const std::type_info & type() const;
See also: Poco::OSP::Service::type()
static const std::string SERVICE_NAME;