@CompileStatic class OpenApiBeanFactoryInitializationAotProcessor extends java.lang.Object implements BeanFactoryInitializationAotProcessor
Keeps, in an image compiled ahead of time, what the description is derived from at runtime.
The description reads the application's controllers, their actions and the OpenAPI annotations on them, and has swagger-core introspect every type they serve and bind. An image keeps only the members something asks for, so without these hints those classes are described as having nothing.
The types are found the way swagger-core finds them at runtime: each domain class, and each type the controllers serve or bind or the OpenAPI annotations on them name, is resolved through swagger-core with the Grails converter, in one context, and every type the resolution reaches is kept, with the classes it extends, rather than every type reachable from their properties. What Grails declares of a type, such as its constraints, is not read, since the application is not running. A controller or an annotation that cannot be read is skipped, and logged, as the description skips it at runtime.
| Constructor and description |
|---|
OpenApiBeanFactoryInitializationAotProcessor() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
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) |