| Free tutorials for Java, Eclipse and Web programming |
If you define your class directly in the extension point you are limited to classes with have a default constructor. To avoid this restriction you can use extension factories to create the object which is then returned. To use a factory implement the interface "IExecutableExtensionFactory" in the class attribute of your extension point definition. The factory receives the configuration elements and can construct the required object.