public abstract class GovernanceProperties<T extends Configurable> extends Object implements org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected Class<T> |
entityClass |
protected org.springframework.core.env.Environment |
environment |
protected Map<String,T> |
parsedEntity |
| Modifier | Constructor and Description |
|---|---|
protected |
GovernanceProperties(String key) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
String |
getConfigKey() |
protected abstract Class<T> |
getEntityClass() |
Map<String,T> |
getParsedEntity() |
void |
onConfigurationChangedEvent(GovernanceConfigurationChangedEvent event) |
protected Map<String,T> |
parseEntity(Map<String,String> yamlEntity) |
protected T |
parseEntityItem(String key,
String value) |
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
setMicroserviceMeta(MicroserviceMeta microserviceMeta) |
protected org.springframework.core.env.Environment environment
protected Map<String,T extends Configurable> parsedEntity
protected Class<T extends Configurable> entityClass
protected GovernanceProperties(String key)
@Autowired public void setEnvironment(org.springframework.core.env.Environment environment)
@Autowired public void setMicroserviceMeta(MicroserviceMeta microserviceMeta)
public String getConfigKey()
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void onConfigurationChangedEvent(GovernanceConfigurationChangedEvent event)
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.