T - the ServiceInfo typepublic abstract class ServiceInfoPropertySourceAdapter<T extends org.springframework.cloud.service.ServiceInfo> extends Object implements ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>, Ordered
ServiceInfo into a PropertySource with highest precedenceHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ServiceInfoPropertySourceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event) |
protected abstract PropertySource<?> |
toPropertySource(T serviceInfo) |
protected abstract PropertySource<?> toPropertySource(T serviceInfo)
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent event)
onApplicationEvent in interface ApplicationListener<org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent>