public class I18nRuntimeHintsProcessor extends java.lang.Object implements BeanFactoryInitializationAotProcessor
Registers the native-image resource hints the message bundles need.
Spring Boot's own MessageSourceRuntimeHints registers two hardcoded patterns,
messages.properties and messages_*.properties — it does not derive anything from the
configured base names. Every Grails plugin bundle uses a namespaced base name, so without this all
plugin messages would resolve on the JVM and silently vanish in a native image.
Hints are derived from the effective spring.messages.basename rather than from
the descriptors directly, so a base name the application configured by hand — pointing at a bundle
outside grails-app/i18n — is covered too, instead of leaving the application to maintain
native metadata itself. Reading the environment is why this is a
BeanFactoryInitializationAotProcessor rather than a plain
RuntimeHintsRegistrar, which has no access to it.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public BeanFactoryInitializationAotContribution |
processAheadOfTime(ConfigurableListableBeanFactory beanFactory) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |