Poco::OSP

class BundleContextFactory

File Information

Library: OSP
Package: Bundle
Header: Poco/OSP/BundleContextFactory.h

Description

This is a factory for BundleContext objects, used by the BundleLoader.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Member Summary

Member Functions: createBundleContext

Inherited Functions: duplicate, referenceCount, release

Types Aliases

ConstPtr

using ConstPtr = const Ptr;

Ptr

using Ptr = Poco::AutoPtr < BundleContextFactory >;

Constructors

BundleContextFactory

BundleContextFactory(
    ServiceRegistry & registry,
    SystemEvents & systemEvents
);

Creates the BundleContextFactory.

BundleContextFactory

BundleContextFactory(
    ServiceRegistry & registry,
    SystemEvents & systemEvents,
    const Path & persistencyDir
);

Creates the BundleContextFactory.

Destructor

~BundleContextFactory protected virtual

~BundleContextFactory();

Destroys the BundleContextFactory.

Member Functions

createBundleContext virtual

virtual BundleContext * createBundleContext(
    BundleLoader & loader,
    Bundle::ConstPtr pBundle,
    BundleEvents & events
);

Creates and returns a new BundleContext object.