Package org.springframework.nativex.hint
Annotation Type ProxyHint
-
@Repeatable(ProxyHints.class) @Retention(RUNTIME) public @interface ProxyHint
Used byNativeHintannotations to indicate which interfaces (since only JDK dynamic proxies are supported) sets of types need proxies. Interface references via thetypes()member are the preferred form of use but sometimes due to accessibility restrictions or nested types the type names may need to be specified in thetypeNames()member.- Author:
- Andy Clement, Sebastien Deleuze
- See Also:
- Dynamic proxy in native image
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String[]typeNamesAlternative way to configure interfaces for a given JDK dynamic proxy, should be used when type visibility prevents usingClassreferences, or for nested types which should be specific using a$separator (for examplecom.example.Foo$Bar).Class<?>[]typesPreferred way to configure interfaces for a given JDK dynamic proxy.
-
-
-
Element Detail
-
types
Class<?>[] types
Preferred way to configure interfaces for a given JDK dynamic proxy.- Returns:
- the types
- Default:
- {}
-
-
-
typeNames
String[] typeNames
Alternative way to configure interfaces for a given JDK dynamic proxy, should be used when type visibility prevents usingClassreferences, or for nested types which should be specific using a$separator (for examplecom.example.Foo$Bar).- Returns:
- the type names
- Default:
- {}
-
-