-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Currently, when you use extgen for reading extensions for your extension points, you still need to write some code if you want to access data inside the extensions.
Pls add some provider feature to extgen.
Say, we have an extension point with name "books" with a node sequence "book" (0...*), and each book has a String attribute "author".
In this scenario there should be some
class BooksProvider { // "Books" being the name of the extension point
}
and in that class there should be a method
List<String> getBookAuthors(); // get<NodeName><AttributeName>s();
In fact, there should be provider methods (getters) for all attributes in the extension point tree.
For the example above, this would mean, that there must also be a getBooks() method.
class BooksProvider {
List<Book> getBooks();
List<String> getBookAuthors();
}