@groovy.transform.CompileStatic class DomainClassEnvironmentPostProcessor extends java.lang.Object implements EnvironmentPostProcessor, Ordered
Defaults auto-timestamp annotation caching to off in development mode, so that reloading a domain class picks up changed annotations.
The default has to reach the ConfigurableEnvironment: both consumers —
AutoTimestampEventListener and DomainModelServiceImpl — read it
through a @Value("${...")} placeholder, and placeholders resolve against
the environment. Writing it into the Grails config with Config.put reached
neither, since that mutates only the config's own map and
GrailsPlaceholderConfigurer never receives the configuration to fold in.
| Constructor and description |
|---|
DomainClassEnvironmentPostProcessor() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
int |
getOrder()Ordered last so the configuration data post-processor has already loaded the application's own configuration, making the check above meaningful. |
|
void |
postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) |
| 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) |
Ordered last so the configuration data post-processor has already loaded the application's own configuration, making the check above meaningful. The source is appended with lowest precedence regardless, so application configuration wins either way.