Skip to content

Add a Provider for Easy Access to All Extension Data #6

@ingomohr

Description

@ingomohr

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();
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions