Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an API to find a Java class for component with a given tag #19353

Open
mshabarov opened this issue May 10, 2024 · 0 comments
Open

Provide an API to find a Java class for component with a given tag #19353

mshabarov opened this issue May 10, 2024 · 0 comments

Comments

@mshabarov
Copy link
Contributor

mshabarov commented May 10, 2024

Describe your motivation

Vaadin Copilot needs a way to find which Java component corresponds to e.g. vaadin-horizontal-layout. Vaadin Flow to provide an API to give this information, i.e. give a Class<? extends Component> for the given String tag.

Describe the solution you'd like

To include scanning for AtTag in the scanner that finds AtJsModule at a build time and produce a map <String, Class<? extends Component>>, which is available with a public API.

Additional context

Limited to only DEV mode, not needed for PROD.

Targets Vaadin 24.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🪵Product backlog
Development

No branches or pull requests

1 participant