public final class AheadOfTimeProcessing extends java.lang.Object
Whether the application's code is being written out rather than run.
A bean definition is read here to be turned into source, so anything it holds is written into the artifact and carried wherever that artifact goes. Two kinds of value must not be: one that describes the machine doing the writing -- a directory it built in, the environment it had -- and one that cannot be expressed as code at all.
This is not a question about the environment. An application generates its definitions in production and is still being generated rather than served, and the things that must not be written down are the same either way: the sources are on disk while generating, so everything that asks whether they are answers yes.
Spring sets the flag around its own processing and does not offer a predicate for it, so the reading of it lives here rather than in each place that has to ask.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static boolean |
isGeneratingCode()
|
| 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) |