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

Need to check if generic types are handled correctly #27

Open
tobiasstamann opened this issue Mar 16, 2023 · 1 comment
Open

Need to check if generic types are handled correctly #27

tobiasstamann opened this issue Mar 16, 2023 · 1 comment

Comments

@tobiasstamann
Copy link
Contributor

Generic Types can be used for backing bean and fluent interfaces, backing bean fields and fluent api method parameters and return types for both fluent api methods and commands return value.

It need to be checked if the framework can handle it correctly.

@tobiasstamann
Copy link
Contributor Author

Generic interfaces are really hard to handle. Generic type parameters must declared in all Fluent interfaces and passed through in all method calls - even the command calls.
It also affects Backing Bean interfaces as well.

In the end generic type parameters only make sense if affected values are passed via the root interfaces static methods.

One example (Fluent element filter in Cute - generic type parameter which will be changed by some operations like isInterface to ExecutableElement):
FluentElementFilter.filter(elements).isInterface(). .. .getResult().

Restrictions in short:

  • generic type Parameters must be present in all fluent interfaces
  • generic type Parameters should be present at root backing bean - otherwise commands with generic type might not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant