Package org.springframework.nativex.hint
Annotation Type ResourceHint
-
@Repeatable(ResourcesHints.class) @Retention(RUNTIME) public @interface ResourceHint
Used byNativeHint
annotations to indicate which resources should be pulled into the image. Resources are described by patterns and may be resource bundles (in which caseisBundle()
should be set).- Author:
- Andy Clement, Sebastien Deleuze
- See Also:
- Accessing resources in native images
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
isBundle
Specify thepatterns()
identify a bundle when set to true.String[]
patterns
Resource patterns specified with Java regexp for regular resources, and with the bundle name (regexp not supported) ifisBundle()
is set to true.
-
-
-
Element Detail
-
patterns
String[] patterns
Resource patterns specified with Java regexp for regular resources, and with the bundle name (regexp not supported) ifisBundle()
is set to true.- Returns:
- the patterns of the resources to include
- See Also:
- Accessing resources in native images return the patterns
- Default:
- {}
-
-
-
isBundle
boolean isBundle
Specify thepatterns()
identify a bundle when set to true.- Returns:
true
if a bundle,false
otherwise.
- Default:
- false
-
-