You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We don't need to load datasources in our web app, or tests. We need it only if app is loaded from the command line. Unfortunately there is no way to do a lazy loading of the datasources as it is annotated with @Context
The text was updated successfully, but these errors were encountered:
ikovalyov
changed the title
Allow conditional loading of the data sources
Allow lazy loading of the data sources
Mar 29, 2021
Would love this, causing a bit of pain atm with shared/inherited config, where datasource config is specified at a higher level and this triggers downstream components to try and construct the Datasource where i'd like them not to.
I believe the idiomatic micronaut way to do this is to support io.micronaut.core.util.Toggleable and then configure the data source as enabled: false at a higher level, and then enabled: true at the lower level. Lots of other areas/configurations support this Toggleable but not Datasource.
We don't need to load datasources in our web app, or tests. We need it only if app is loaded from the command line. Unfortunately there is no way to do a lazy loading of the datasources as it is annotated with
@Context
The text was updated successfully, but these errors were encountered: