public class ProcessRegistryPropertySourceApplicationContextInitializer extends Object implements org.springframework.context.ApplicationContextInitializer
ApplicationContextInitializer registering ProcessRegistryPropertySource.
process-spring-boot-registry jar to its classpath, ProcessRegistry will be used to
resolve Spring properties.
@Value("service.invoicing.url")
String host;
ProcessRegistry will be attempted to be read before regular Spring property sources (for example before the
application.properties file). If the desired value will not be found in the process registry, Spring will fallback
to the other property sources.| Constructor and Description |
|---|
ProcessRegistryPropertySourceApplicationContextInitializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
static ProcessRegistry |
processRegistry() |
public ProcessRegistryPropertySourceApplicationContextInitializer()
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
initialize in interface org.springframework.context.ApplicationContextInitializerpublic static ProcessRegistry processRegistry()
Copyright © 2011–2014 Red Hat. All rights reserved.