Creating the extension point:

Attach to extension point class:

Can I add factory class to the custom extension point, which returns a different class depending on some rule?
Creating the extension point:

Attach to extension point class:

Can I add factory class to the custom extension point, which returns a different class depending on some rule?
Copyright © 2021 Jogjafile Inc.
To make your class a factory it can implement the
IExecutableExtensionFactoryclass, The Eclipse extension manager will call themethod to ask your factory to create the extension class.
Many factory classes also implement
IExecutableExtensionwhich has the single method:The extension manager will call
setInitializationDatabefore callingcreate. It gives you the entire configuration element from the plugin.xml so you can look at any attributes you want.