File Information
Library: OSP/JS
Package: Module
Header: Poco/OSP/JS/ModuleFactory.h
Description
A factory for Poco::JS::Core::Module objects.
Member Summary
Member Functions: context, createModule, init, initImpl
Constructors
ModuleFactory
Creates the ModuleFactory.
Destructor
~ModuleFactory
virtual ~ModuleFactory();
Destroys the ModuleFactory.
Member Functions
context
Poco::OSP::BundleContext::Ptr context() const;
Returns the context. The pointer is guaranteed to be valid.
createModule
virtual Poco::JS::Core::Module * createModule() = 0;
Create a Module object.
init
void init(
Poco::OSP::BundleContext::Ptr pContext
);
Initializes the factory with the given BundleContext.
initImpl
virtual void initImpl();
Add extra initialization code by overriding this method in your subclass.