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 void
contribute(org.springframework.nativex.domain.proxies.ProxiesDescriptor descriptor)
static NativeProxyEntry
ofClass(Class<?> classType, int proxyFeatures, Class<?>... interfaceTypes)
Create a newNativeProxyEntry
for the specified class type.static NativeProxyEntry
ofClassName(String className, int proxyFeatures, String... interfaceTypeNames)
Create a newNativeProxyEntry
for the specified class name.static NativeProxyEntry
ofInterfaceNames(String... typeNames)
Create a newNativeProxyEntry
for the specified interface type names.static NativeProxyEntry
ofInterfaces(Class<?>... types)
Create a newNativeProxyEntry
for the specified interface types.
-
-
-
Method Detail
-
ofInterfaces
public static NativeProxyEntry ofInterfaces(Class<?>... types)
Create a newNativeProxyEntry
for 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 newNativeProxyEntry
for the specified class type.- Parameters:
classType
- the type of the classproxyFeatures
- the proxy features as defined inProxyBits
interfaceTypes
- the ordered list of interface types- Returns:
- a proxy entry
-
ofInterfaceNames
public static NativeProxyEntry ofInterfaceNames(String... typeNames)
Create a newNativeProxyEntry
for 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 newNativeProxyEntry
for the specified class name.- Parameters:
className
- the type name of the classproxyFeatures
- the proxy features as defined inProxyBits
interfaceTypeNames
- the ordered list of interface type names- Returns:
- a proxy entry
-
contribute
public void contribute(org.springframework.nativex.domain.proxies.ProxiesDescriptor descriptor)
-
-