class MBeanExportBeanDefinitionParser extends AbstractBeanDefinitionParser
Registers an instance of
AnnotationMBeanExporter
within the context.
AnnotationMBeanExporter
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_DOMAIN_ATTRIBUTE |
private static java.lang.String |
MBEAN_EXPORTER_BEAN_NAME |
private static java.lang.String |
REGISTRATION_ATTRIBUTE |
private static java.lang.String |
REGISTRATION_IGNORE_EXISTING |
private static java.lang.String |
REGISTRATION_REPLACE_EXISTING |
private static java.lang.String |
SERVER_ATTRIBUTE |
ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
MBeanExportBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
protected AbstractBeanDefinition |
parseInternal(org.w3c.dom.Element element,
ParserContext parserContext)
Central template method to actually parse the supplied
Element
into one or more BeanDefinitions . |
protected java.lang.String |
resolveId(org.w3c.dom.Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
Resolve the ID for the supplied
BeanDefinition . |
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
private static final java.lang.String MBEAN_EXPORTER_BEAN_NAME
private static final java.lang.String DEFAULT_DOMAIN_ATTRIBUTE
private static final java.lang.String SERVER_ATTRIBUTE
private static final java.lang.String REGISTRATION_ATTRIBUTE
private static final java.lang.String REGISTRATION_IGNORE_EXISTING
private static final java.lang.String REGISTRATION_REPLACE_EXISTING
protected java.lang.String resolveId(org.w3c.dom.Element element, AbstractBeanDefinition definition, ParserContext parserContext)
AbstractBeanDefinitionParser
BeanDefinition
.
When using generation
, a name is generated automatically.
Otherwise, the ID is extracted from the "id" attribute, potentially with a
fallback
to a generated id.
resolveId
in class AbstractBeanDefinitionParser
element
- the element that the bean definition has been built fromdefinition
- the bean definition to be registeredparserContext
- the object encapsulating the current state of the parsing process;
provides access to a BeanDefinitionRegistry
protected AbstractBeanDefinition parseInternal(org.w3c.dom.Element element, ParserContext parserContext)
AbstractBeanDefinitionParser
Element
into one or more BeanDefinitions
.parseInternal
in class AbstractBeanDefinitionParser
element
- the element that is to be parsed into one or more BeanDefinitions
parserContext
- the object encapsulating the current state of the parsing process;
provides access to a BeanDefinitionRegistry
BeanDefinition
resulting from the parsing of the supplied Element
AbstractBeanDefinitionParser.parse(org.w3c.dom.Element, ParserContext)
,
AbstractBeanDefinitionParser.postProcessComponentDefinition(org.springframework.beans.factory.parsing.BeanComponentDefinition)