Class NativeResourcesEntry
- java.lang.Object
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeResourcesEntry
-
public class NativeResourcesEntry extends Object
Collect the need for resources at runtime.- Author:
- Stephane Nicoll, Sebastien Deleuze, Andy Clement
- See Also:
- GraalVM native image resource documentation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contribute(org.springframework.nativex.domain.resources.ResourcesDescriptor descriptor)
static NativeResourcesEntry
of(String resource)
Create a newNativeResourcesEntry
for the specified resource pattern.static NativeResourcesEntry
ofBundle(String bundle)
Create a newNativeResourcesEntry
for the specified bundle pattern.static NativeResourcesEntry
ofClass(Class<?> type)
Create a newNativeResourcesEntry
for the specified class.static NativeResourcesEntry
ofClassName(String className)
Create a newNativeResourcesEntry
for the specified class name.
-
-
-
Method Detail
-
of
public static NativeResourcesEntry of(String resource)
Create a newNativeResourcesEntry
for the specified resource pattern.- Parameters:
resource
- Java regexp that matches resource(s) to be included- Returns:
- a resource entry
-
ofBundle
public static NativeResourcesEntry ofBundle(String bundle)
Create a newNativeResourcesEntry
for the specified bundle pattern.- Parameters:
bundle
- Java regexp that matches bundle(s) to be included- Returns:
- a resource entry
-
ofClassName
public static NativeResourcesEntry ofClassName(String className)
Create a newNativeResourcesEntry
for the specified class name. This allows reading ASM metadata at runtime.- Parameters:
className
- the type to consider- Returns:
- a resource entry
-
ofClass
public static NativeResourcesEntry ofClass(Class<?> type)
Create a newNativeResourcesEntry
for the specified class. This allows reading ASM metadata at runtime.- Parameters:
type
- the type to consider- Returns:
- a resource entry
-
contribute
public void contribute(org.springframework.nativex.domain.resources.ResourcesDescriptor descriptor)
-
-