actframework / act-ebean

The ebean plugin that uses latest ebeanorm and requrie java 8 support
Apache License 2.0
2 stars 1 forks source link

Don't provide `EbeanServer` to `EbeanDao` if it is already provided #12

Open greenlaw110 opened 7 years ago

greenlaw110 commented 7 years ago

At the moment EbeanDaoInjectionListener always provide EbeanServer to EbeanDao when it is provided by dependency injector. However there are cases that EbeanDao is declared as @Stateless or @Singleton thus it makes no sense to provide the EbeanServer instance to the Dao again