Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
berry::IExecutableExtensionFactory Struct Referenceabstract

#include <berryIExecutableExtensionFactory.h>

Inheritance diagram for berry::IExecutableExtensionFactory:

Public Member Functions

virtual ~IExecutableExtensionFactory ()
 
virtual QObject * Create ()=0
 

Detailed Description

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.

<extension point="org.blueberry.ui.preferencePages">
<page name="..." class="org.eclipse.update.ui.PreferencePageFactory:org.eclipse.update.ui.preferences.MainPreferencePage">
</page>
</extension>

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.

See also
IConfigurationElement

Definition at line 48 of file berryIExecutableExtensionFactory.h.

Constructor & Destructor Documentation

◆ ~IExecutableExtensionFactory()

virtual berry::IExecutableExtensionFactory::~IExecutableExtensionFactory ( )
virtual

Member Function Documentation

◆ Create()

virtual QObject* berry::IExecutableExtensionFactory::Create ( )
pure virtual

Creates and returns a new instance.

Exceptions
CoreExceptionif an instance of the executable extension could not be created for any reason

Implemented in berry::ExtensionFactory.


The documentation for this struct was generated from the following file: