Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
#include <berryIExecutableExtensionFactory.h>
Public Member Functions | |
virtual | ~IExecutableExtensionFactory () |
virtual QObject * | Create ()=0 |
This interface allows extension providers to control how the instances provided to extension-points are being created by referring to the factory instead of referring to a class. For example, the following extension to the preference page extension-point uses a factory called PreferencePageFactory
.
Effectively, factories give full control over the create executable extension process.
The factories are responsible for handling the case where the concrete instance implements IExecutableExtension.
Given that factories are instantiated as executable extensions, they must provide a 0-argument public constructor. Like any other executable extension, they can be configured by implementing the IExecutableExtension interface.
Definition at line 48 of file berryIExecutableExtensionFactory.h.
|
virtual |
|
pure virtual |
Creates and returns a new instance.
CoreException | if an instance of the executable extension could not be created for any reason |
Implemented in berry::ExtensionFactory.