public class AutowireModeBeanRegistrationAotProcessor extends java.lang.Object implements BeanRegistrationAotProcessor
Carries a bean's autowire mode into the code generated for it ahead of time.
Grails registers much of what it contributes as autowired by name: a tag library, a controller or an interceptor takes its collaborators from beans of the same name, without annotating them. The generator writes out most of a definition but not this, so a bean rebuilt from generated code arrives with those collaborators unset -- a tag library holding null where it expects a message source, and a link generator holding null where it expects the URL mappings. Nothing fails at start-up; the first page that reaches one of them does.
The annotated injection is unaffected either way, because the generator resolves that itself and writes the field and method access into the instance supplier. This only restores what convention supplies.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public BeanRegistrationAotContribution |
processAheadOfTime(RegisteredBean registeredBean) |
| 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) |