public class ContextIdApplicationContextInitializer extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered
ApplicationContextInitializer
that set the Spring
ApplicationContext ID
. The following environment
properties will be consulted to create the ID:
In addition the following environment properties will be consulted to append a relevant port or index:
Constructor and Description |
---|
ContextIdApplicationContextInitializer() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
void |
setOrder(int order) |
public ContextIdApplicationContextInitializer()
public void setOrder(int order)
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
initialize
in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
Copyright © 2013. All rights reserved.