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 voidcontribute(org.springframework.nativex.domain.resources.ResourcesDescriptor descriptor)static NativeResourcesEntryof(String resource)Create a newNativeResourcesEntryfor the specified resource pattern.static NativeResourcesEntryofBundle(String bundle)Create a newNativeResourcesEntryfor the specified bundle pattern.static NativeResourcesEntryofClass(Class<?> type)Create a newNativeResourcesEntryfor the specified class.static NativeResourcesEntryofClassName(String className)Create a newNativeResourcesEntryfor the specified class name.
-
-
-
Method Detail
-
of
public static NativeResourcesEntry of(String resource)
Create a newNativeResourcesEntryfor 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 newNativeResourcesEntryfor 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 newNativeResourcesEntryfor 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 newNativeResourcesEntryfor 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)
-
-