I fight with trying to make my @Produces methods working. But suddenly I realized, CUBA is based on plain Tomcat, so no CDI container right ?
In that case I’m curious how you did implement Injections in the platform.
To be more clear, I cannot rely on your pattern with the NAME static field (which works perfectly by the way) to create my beans, because it is a generics.
How can I inject an instance of a class defined this way using CUBA :
EntityRules<E extends Entity>
The standard way with CDI is to define producers methods returning instances with concrete type, like e.g