META-INF/ebean-info.mf
I'll shortly be pushing an enhancement to the querybean generator (Java & Kotlin) such that they generate a META-INF/ebean-info.mf manifest file (which means we won't need ebean.mf).
This ebean-info.mf will contain the entity-packages and will effectively mean that we will no longer need the ebean.mf file (unless we want to customise advanced enhancement settings).
ModuleInfoLoader (to automatically register entity classes)
Along with this the querybean generators will generate a class that implements a new interface called ModuleInfoLoader. This will explicitly list the entity bean classes that should be registered with the default DB and other named databases (such that we don't have to write that manually or use classpath scanning to find them).
We will be able to turn this on and off.
This will generally be very good as it means people will get fast startup with no effort as there isn't any need to scan for entity classes etc or write code to explicitly register the entity classes.
However, this might lead to confusion if applications are using classpath scanning to register classes that are not entity classes but also extension interfaces like BeanPersistController, BeanPersistListener, BeanQueryAdapter etc.
Those applications needing and wanting classpath scanning for this need this off. Initially it will be off by default but I suspect that 99% of applications should have this turned on.
Any application that adds classes to ServerConfig/DatabaseConfig isn't using classpath scanning.
I hope to get this right and not cause confusion for apps using classpath scanning.
Cheers, Rob.