public class ControllerRuntimeHints extends java.lang.Object implements RuntimeHintsRegistrar
Registers the controller API a request is dispatched through.
A controller action reaches these through Groovy's dynamic dispatch, which reads a type's declared methods to choose an overload. An ahead-of-time image keeps only the members something asks for, so without these hints the methods are absent and dispatch fails at the point of use -- on the request that first takes that path, rather than at start-up.
Recording this here rather than leaving it to a tracing agent matters because the agent only ever sees the paths a developer happened to exercise: the method check below is reached only by POST, PUT and DELETE, so a walk of an application's pages never records it and the failure appears the first time someone submits a form.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
registerHints(RuntimeHints hints, java.lang.ClassLoader classLoader) |
| 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) |