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

For component interactions, allow to specify a class that automatically parses the component id. #5

Open
stelitop opened this issue Aug 30, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@stelitop
Copy link
Owner

The idea is to create an interface ComponentIdConverter that has two methods - convertToObject and optionally a convertToId method. In the @ComponentInteraction annotation, you can specify a class that implements the interface. When the pattern of the component id is matched, it will try to instantiate a new converted object and call its convertToObject method on the id. Afterwards, the user can inject the converter into the method using another annotation. If the converted throws an exception because it could not pass the id, the method is not executed and an error is logged.

@stelitop stelitop added the enhancement New feature or request label Aug 30, 2023
@stelitop stelitop added this to the v0.0.4 milestone Sep 3, 2023
@stelitop stelitop removed this from the v0.0.4 milestone Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant