-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
imported from restx/restx#79
As discussed in #72, AppSettings is used at various places during shell commands.
However, the instance retrieved is the one defined in restx-shell context, not the one defined in the potential current application.
It means if default values such as restx.targetClasses or restx.archive.excludes are overriden in your app, these properties won't be used in restx-shell which will rely on default values.
Potential solution to this problem cover :
- Loading the app DI context, on a separate classloader dedicated to the app classes & libraries. Hard thing here will be to reproduce the DI bootstrapping process and instances communication between shell's classloader and app's classloader (classes footprints won't be the same, first because in different classloaders, second because restx-shell's
restx-coreversion will be different than your app'srestx-coreversion)
Reactions are currently unavailable