Class NativeInitializationEntry
- java.lang.Object
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeInitializationEntry
-
public class NativeInitializationEntry extends Object
Describe the need for initialization configuration.- Author:
- Sebastien Deleuze
- See Also:
- GraalVM native image initialization documentation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontribute(org.springframework.nativex.domain.init.InitializationDescriptor descriptor)static NativeInitializationEntryofBuildTimePackage(String packageName)Create a new build-timeNativeInitializationEntryfor the specified package name.static NativeInitializationEntryofBuildTimeType(Class<?> type)Create a new build-timeNativeInitializationEntryfor the specified type.static NativeInitializationEntryofBuildTimeTypeName(String typeName)Create a new build-timeNativeInitializationEntryfor the specified type name.static NativeInitializationEntryofRuntimePackage(String packageName)Create a new runtimeNativeInitializationEntryfor the specified package name.static NativeInitializationEntryofRuntimeType(Class<?> type)Create a new runtimeNativeInitializationEntryfor the specified type.static NativeInitializationEntryofRuntimeTypeName(String typeName)Create a new runtimeNativeInitializationEntryfor the specified type name.
-
-
-
Method Detail
-
ofRuntimeType
public static NativeInitializationEntry ofRuntimeType(Class<?> type)
Create a new runtimeNativeInitializationEntryfor the specified type.- Parameters:
type- the related type- Returns:
- the initialization entry
-
ofRuntimeTypeName
public static NativeInitializationEntry ofRuntimeTypeName(String typeName)
Create a new runtimeNativeInitializationEntryfor the specified type name.- Parameters:
typeName- the related type name- Returns:
- the initialization entry
- Throws:
IllegalArgumentException- when the type can't be found
-
ofBuildTimeType
public static NativeInitializationEntry ofBuildTimeType(Class<?> type)
Create a new build-timeNativeInitializationEntryfor the specified type.- Parameters:
type- the related type- Returns:
- an initialization entry
-
ofBuildTimeTypeName
public static NativeInitializationEntry ofBuildTimeTypeName(String typeName)
Create a new build-timeNativeInitializationEntryfor the specified type name.- Parameters:
typeName- the related type name- Returns:
- the initialization entry
- Throws:
IllegalArgumentException- when the type can't be found
-
ofRuntimePackage
public static NativeInitializationEntry ofRuntimePackage(String packageName)
Create a new runtimeNativeInitializationEntryfor the specified package name.- Parameters:
packageName- the related package name- Returns:
- the initialization entry
-
ofBuildTimePackage
public static NativeInitializationEntry ofBuildTimePackage(String packageName)
Create a new build-timeNativeInitializationEntryfor the specified package name.- Parameters:
packageName- the related package name- Returns:
- the initialization entry
-
contribute
public void contribute(org.springframework.nativex.domain.init.InitializationDescriptor descriptor)
-
-