File Information
Library: OSP/Shell
Package: Shell
Header: Poco/OSP/Shell/CommandFactory.h
Description
A factory for Command objects.
Inheritance
Known Derived Classes: LoginCommandFactory, HelpCommandFactory, QuitCommandFactory
Member Summary
Member Functions: context, createCommand, init, initImpl
Constructors
CommandFactory
Creates the CommandFactory.
Destructor
~CommandFactory
virtual ~CommandFactory();
Destroys the CommandFactory.
Member Functions
context
Poco::OSP::BundleContext::Ptr context() const;
Returns the context. The pointer is guaranteed to be valid.
createCommand
virtual Command * createCommand() = 0;
Create a Command 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.