Package io.quarkus.deployment.builditem
Class AdditionalClassLoaderResourcesBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.AdditionalClassLoaderResourcesBuildItem
public final class AdditionalClassLoaderResourcesBuildItem
extends io.quarkus.builder.item.MultiBuildItem
A build item that allows extensions to register additional resources that should be available
from the ClassLoader at runtime.
These resources are typically generated or discovered during the build process and are not
located in the standard src/main/resources directory. Multiple instances of this
build item can be produced, and all registered resources will be aggregated.
The key of the map represents the resource path (e.g., META-INF/my-config.properties),
and the value is the byte content of the resource.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAdditionalClassLoaderResourcesBuildItem(Map<String, byte[]> resources) Constructs a newAdditionalClassLoaderResourcesBuildItem. -
Method Summary
Modifier and TypeMethodDescriptionReturns the map of additional resources to be added to the ClassLoader.
-
Field Details
-
resources
A map where keys are resource paths and values are the corresponding resource content as byte arrays.
-
-
Constructor Details
-
AdditionalClassLoaderResourcesBuildItem
Constructs a newAdditionalClassLoaderResourcesBuildItem.- Parameters:
resources- A map containing the resource paths and their byte content. The keys are the paths where the resources should be accessible via the ClassLoader, and the values are the raw byte data of the resources.
-
-
Method Details
-
getResources
Returns the map of additional resources to be added to the ClassLoader.- Returns:
- A map where keys are resource paths (String) and values are resource content (byte[]).
-