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() |
ContextIdApplicationContextInitializer(String name)
Create a new
ContextIdApplicationContextInitializer instance. |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
void |
setOrder(int order) |
public ContextIdApplicationContextInitializer()
public ContextIdApplicationContextInitializer(String name)
ContextIdApplicationContextInitializer
instance.name
- the name of the application (can include placeholders)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 © 2017 Pivotal Software, Inc.. All rights reserved.