public class NacosConfigMetadataEvent
extends org.springframework.context.ApplicationEvent
| 限定符和类型 | 字段和说明 |
|---|---|
private AnnotatedElement |
annotatedElement |
private Object |
bean |
private String |
beanName |
private Class<?> |
beanType |
private String |
dataId |
private String |
groupId |
private Map<Object,Object> |
nacosProperties |
private Map<String,Object> |
nacosPropertiesAttributes |
private static long |
serialVersionUID |
private org.springframework.core.io.Resource |
xmlResource |
source| 构造器和说明 |
|---|
NacosConfigMetadataEvent(Object source)
Create a new ApplicationEvent.
|
| 限定符和类型 | 方法和说明 |
|---|---|
AnnotatedElement |
getAnnotatedElement()
|
Object |
getBean() |
String |
getBeanName() |
Class<?> |
getBeanType() |
String |
getDataId() |
String |
getGroupId() |
Map<Object,Object> |
getNacosProperties()
Actual effective Nacos
Map |
Map<String,Object> |
getNacosPropertiesAttributes()
|
org.springframework.core.io.Resource |
getXmlResource()
Resource for XML configuration |
void |
setAnnotatedElement(AnnotatedElement annotatedElement) |
void |
setBean(Object bean) |
void |
setBeanName(String beanName) |
void |
setBeanType(Class<?> beanType) |
void |
setDataId(String dataId) |
void |
setGroupId(String groupId) |
void |
setNacosProperties(Map<Object,Object> nacosProperties) |
void |
setNacosPropertiesAttributes(Map<String,Object> nacosPropertiesAttributes) |
void |
setXmlResource(org.springframework.core.io.Resource xmlResource) |
getSource, toStringprivate static final long serialVersionUID
private String dataId
private String groupId
private String beanName
private Object bean
private Class<?> beanType
private AnnotatedElement annotatedElement
private org.springframework.core.io.Resource xmlResource
public NacosConfigMetadataEvent(Object source)
source - maybe Annotation or XML elementNacosConfigListener,
NacosConfigurationProperties,
NacosPropertySource,
Elementpublic String getDataId()
public void setDataId(String dataId)
public String getGroupId()
public void setGroupId(String groupId)
public String getBeanName()
public void setBeanName(String beanName)
public Object getBean()
public void setBean(Object bean)
public Class<?> getBeanType()
public void setBeanType(Class<?> beanType)
public AnnotatedElement getAnnotatedElement()
null if source from XML configurationNacosConfigListener,
NacosConfigurationProperties,
NacosPropertySourcepublic void setAnnotatedElement(AnnotatedElement annotatedElement)
public org.springframework.core.io.Resource getXmlResource()
Resource for XML configurationnull if Annotated by somewherepublic void setXmlResource(org.springframework.core.io.Resource xmlResource)
public Map<Object,Object> getNacosProperties()
MapCopyright © 2021 Zodiac. All rights reserved.