Library: OSP/Shell
Package: Shell
Header: Poco/OSP/Shell/CommandFactory.h
A factory for Command objects.
Known Derived Classes: HelpCommandFactory, LoginCommandFactory, QuitCommandFactory
Member Functions: context, createCommand, init, initImpl
Creates the CommandFactory.
virtual ~CommandFactory();
Destroys the CommandFactory.
Poco::OSP::BundleContext::Ptr context() const;
Returns the context. The pointer is guaranteed to be valid.
virtual Command * createCommand() = 0;
Create a Command object.
void init(
Poco::OSP::BundleContext::Ptr pContext
);
Initializes the factory with the given BundleContext.
virtual void initImpl();
Add extra initialization code by overriding this method in your subclass.