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
Inject the [hotspot=16-17 file=0]`io_openliberty_guides_inventory_inMaintenance` property, and add the [hotspot=24-26 file=0]`isInMaintenance()` class method. Simply copy all the code and replace the contents of the file.
230
+
Inject the [hotspot=16-17 file=0]`io_openliberty_guides_inventory_inMaintenance` property, and add the [hotspot=24-26 file=0]`isInMaintenance()` class method.
231
231
232
232
The [hotspot=16 file=0]`@Inject` and [hotspot=17 file=0]`@ConfigProperty` annotations inject the [hotspot=4 file=1]`io_openliberty_guides_inventory_inMaintenance` configuration property from the [hotspot file=1]`CustomConfigSource.json` file.
233
233
The `Provider<>` interface used, forces the service to retrieve the inMaintenance value just in time. This retrieval of the value just in time makes the config injection dynamic and able to change without having to restart the application.
0 commit comments