I would like to create something similar Spring do with Repository. I was thinking about java proxies https://www.logicbig.com/tutorials/core-java-tutorial/java-dynamic-proxies/runtime-interface-implementation.html but seems that they have the implementation https://github.com/spring-projects/spring-data-jpa/blob/master/src/main/java/org/springframework/data/jpa/repository/cdi/JpaRepositoryBean.java but it's not clear to me how to instantiate it at run-time.
Any suggestion?
Aucun commentaire:
Enregistrer un commentaire