Class NativeProxyEntry
- java.lang.Object
-
- org.springframework.aot.context.bootstrap.generator.infrastructure.nativex.NativeProxyEntry
-
public class NativeProxyEntry extends Object
Describe the need for proxy configuration.- Author:
- Sebastien Deleuze
- See Also:
- GraalVM native image dynamic proxy documentation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontribute(org.springframework.nativex.domain.proxies.ProxiesDescriptor descriptor)static NativeProxyEntryofClass(Class<?> classType, int proxyFeatures, Class<?>... interfaceTypes)Create a newNativeProxyEntryfor the specified class type.static NativeProxyEntryofClassName(String className, int proxyFeatures, String... interfaceTypeNames)Create a newNativeProxyEntryfor the specified class name.static NativeProxyEntryofInterfaceNames(String... typeNames)Create a newNativeProxyEntryfor the specified interface type names.static NativeProxyEntryofInterfaces(Class<?>... types)Create a newNativeProxyEntryfor the specified interface types.
-
-
-
Method Detail
-
ofInterfaces
public static NativeProxyEntry ofInterfaces(Class<?>... types)
Create a newNativeProxyEntryfor the specified interface types.- Parameters:
types- the ordered list of interface types defining the proxy- Returns:
- a proxy entry
-
ofClass
public static NativeProxyEntry ofClass(Class<?> classType, int proxyFeatures, Class<?>... interfaceTypes)
Create a newNativeProxyEntryfor the specified class type.- Parameters:
classType- the type of the classproxyFeatures- the proxy features as defined inProxyBitsinterfaceTypes- the ordered list of interface types- Returns:
- a proxy entry
-
ofInterfaceNames
public static NativeProxyEntry ofInterfaceNames(String... typeNames)
Create a newNativeProxyEntryfor the specified interface type names.- Parameters:
typeNames- the ordered list of type names defining the proxy- Returns:
- a proxy entry
-
ofClassName
public static NativeProxyEntry ofClassName(String className, int proxyFeatures, String... interfaceTypeNames)
Create a newNativeProxyEntryfor the specified class name.- Parameters:
className- the type name of the classproxyFeatures- the proxy features as defined inProxyBitsinterfaceTypeNames- the ordered list of interface type names- Returns:
- a proxy entry
-
contribute
public void contribute(org.springframework.nativex.domain.proxies.ProxiesDescriptor descriptor)
-
-