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
This is a wrapper around the RunningDevServicesRegistry, so the registry can be loaded with the system classloader The QuarkusClassLoader takes care of loading the tracker with the right classloader
809
+
This build item is used to manage the lifecycle of dev services across different features and launch modes.
BuildItem for running dev services. Combines injected configs to the application with container id (if it exists).
828
+
BuildItem for discovered (running) or to be started dev services.
825
829
Processors are expected to return this build item not only when the dev service first starts, but also if a running dev service already exists.
826
-
`RunningDevService` helps to manage the lifecycle of the running dev service.
830
+
Two builders are provided to create this build item:
831
+
- `DevServicesResultBuildItem#discovered()` for discovered dev services, provides config to be injected to the application with container id (if it exists).
832
+
- `DevServicesResultBuildItem#owned()` for owned dev services, that will be started before application start, provides the startable supplier and config injected to the application and post-start action.
833
+
`RunningDevService` is deprecated in favor of builder flavors.
827
834
-- a|`java.lang.String name`
828
835
829
-
_No Javadoc found_
836
+
The name of the dev service, usually feature name.
830
837
831
838
`java.lang.String description`
832
839
833
-
_No Javadoc found_
840
+
A description of the dev service, usually feature name with additional information.
834
841
835
842
`java.lang.String containerId`
836
843
837
-
_No Javadoc found_
844
+
The container id of the dev service, if it is running in a container. If the dev service is not running in a container, this will be null.
In rare cases, an extension might need to execute logic *even when its main component is not added to the DOM*. This is typically useful for setting global state or triggering background tasks without displaying any UI.
1301
+
1302
+
To support this, extensions can declare a *headless component* — a web component with no visual representation that runs automatically on page load.
1303
+
1304
+
Declare the headless component in your extension:
1305
+
1306
+
[source,java]
1307
+
----
1308
+
CardPageBuildItem cardPageBuildItem = new CardPageBuildItem();
0 commit comments