Class NativeInitializationEntry
- java.lang.Object
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeInitializationEntry
-
public class NativeInitializationEntry extends java.lang.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 void
contribute(org.springframework.nativex.domain.init.InitializationDescriptor descriptor)
static NativeInitializationEntry
ofBuildTimePackage(java.lang.String packageName)
Create a new build-timeNativeInitializationEntry
for the specified package name.static NativeInitializationEntry
ofBuildTimeType(java.lang.Class<?> type)
Create a new build-timeNativeInitializationEntry
for the specified type.static NativeInitializationEntry
ofBuildTimeTypeName(java.lang.String typeName)
Create a new build-timeNativeInitializationEntry
for the specified type name.static NativeInitializationEntry
ofRuntimePackage(java.lang.String packageName)
Create a new runtimeNativeInitializationEntry
for the specified package name.static NativeInitializationEntry
ofRuntimeType(java.lang.Class<?> type)
Create a new runtimeNativeInitializationEntry
for the specified type.static NativeInitializationEntry
ofRuntimeTypeName(java.lang.String typeName)
Create a new runtimeNativeInitializationEntry
for the specified type name.
-
-
-
Method Detail
-
ofRuntimeType
public static NativeInitializationEntry ofRuntimeType(java.lang.Class<?> type)
Create a new runtimeNativeInitializationEntry
for the specified type.- Parameters:
type
- the related type- Returns:
- the initialization entry
-
ofRuntimeTypeName
public static NativeInitializationEntry ofRuntimeTypeName(java.lang.String typeName)
Create a new runtimeNativeInitializationEntry
for the specified type name.- Parameters:
typeName
- the related type name- Returns:
- the initialization entry
- Throws:
java.lang.IllegalArgumentException
- when the type can't be found
-
ofBuildTimeType
public static NativeInitializationEntry ofBuildTimeType(java.lang.Class<?> type)
Create a new build-timeNativeInitializationEntry
for the specified type.- Parameters:
type
- the related type- Returns:
- an initialization entry
-
ofBuildTimeTypeName
public static NativeInitializationEntry ofBuildTimeTypeName(java.lang.String typeName)
Create a new build-timeNativeInitializationEntry
for the specified type name.- Parameters:
typeName
- the related type name- Returns:
- the initialization entry
- Throws:
java.lang.IllegalArgumentException
- when the type can't be found
-
ofRuntimePackage
public static NativeInitializationEntry ofRuntimePackage(java.lang.String packageName)
Create a new runtimeNativeInitializationEntry
for the specified package name.- Parameters:
packageName
- the related package name- Returns:
- the initialization entry
-
ofBuildTimePackage
public static NativeInitializationEntry ofBuildTimePackage(java.lang.String packageName)
Create a new build-timeNativeInitializationEntry
for 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)
-
-