Package org.springframework.nativex.hint
Annotation Type ResourceHint
-
@Repeatable(ResourcesHints.class) @Retention(RUNTIME) public @interface ResourceHint
Used byNativeHintannotations 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 booleanisBundleSpecify thepatterns()identify a bundle when set to true.java.lang.String[]patternsResource patterns specified with Java regexp for regular resources, and with the bundle name (regexp not supported) ifisBundle()is set to true.
-
-
-
Element Detail
-
patterns
java.lang.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:
trueif a bundle,falseotherwise.
- Default:
- false
-
-