Is there a way to get the config associated with the ComponentModel in UserStorageProviderFactory methods like init() or postInit()? Currently, I’m lazy initializing in create() but I’d like to do this all at startup. I’m not looking for a default config but one with values pulled from the admin panel.
A ComponentModel is going to be for an instance of that storage provider, so there are (potentially) more than one. If you know which one you are looking for, you can get it from the RealmModel with realm.getComponent(id), or iterate through all of them with realm.getComponentsStream().
Is there a good place to iterate over the components? The factory’s init() and postInit() methods don’t seem to have the Realm or ComponentModel available.
I’m trying to configure an Agroal JDBC connection and trying to avoid a lazy-loading performance hit on the first connections.