Top Description Fields Constructors Methods
org.springframework.context.config

pack-priv Class MBeanExportBeanDefinitionParser

extends AbstractBeanDefinitionParser
Class Inheritance
Imports
org.w3c.dom.Element, org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.support.AbstractBeanDefinition, .BeanDefinitionBuilder, org.springframework.beans.factory.xml.AbstractBeanDefinitionParser, .ParserContext, org.springframework.jmx.export.annotation.AnnotationMBeanExporter, org.springframework.jmx.support.RegistrationPolicy, org.springframework.util.StringUtils

Parser for the <context:mbean-export/> element.

Registers an instance of org.springframework.jmx.export.annotation.AnnotationMBeanExporter within the context.

Authors
Juergen Hoeller, Mark Fisher
Since
2.5
See Also
org.springframework.jmx.export.annotation.AnnotationMBeanExporter

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
Inherited from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser:
ID_ATTRIBUTENAME_ATTRIBUTE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected AbstractBeanDefinition
parseInternal(Element
the element that is to be parsed into one or more BeanDefinitions
element
,
ParserContext
the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry
parserContext
)

Implements abstract org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parseInternal.

Central template method to actually parse the supplied Element into one or more BeanDefinitions.
protected String
resolveId(Element
the element that the bean definition has been built from
element
,
AbstractBeanDefinition
the bean definition to be registered
definition
,
ParserContext
the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry
parserContext
)

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Resolve the ID for the supplied BeanDefinition.
Inherited from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser:
parsepostProcessComponentDefinitionregisterBeanDefinitionshouldFireEventsshouldGenerateIdshouldGenerateIdAsFallbackshouldParseNameAsAliases

Field Detail

DEFAULT_DOMAIN_ATTRIBUTEback to summary
private static final String DEFAULT_DOMAIN_ATTRIBUTE
MBEAN_EXPORTER_BEAN_NAMEback to summary
private static final String MBEAN_EXPORTER_BEAN_NAME
REGISTRATION_ATTRIBUTEback to summary
private static final String REGISTRATION_ATTRIBUTE
REGISTRATION_IGNORE_EXISTINGback to summary
private static final String REGISTRATION_IGNORE_EXISTING
REGISTRATION_REPLACE_EXISTINGback to summary
private static final String REGISTRATION_REPLACE_EXISTING
SERVER_ATTRIBUTEback to summary
private static final String SERVER_ATTRIBUTE

Constructor Detail

MBeanExportBeanDefinitionParserback to summary
pack-priv MBeanExportBeanDefinitionParser()

Method Detail

parseInternalback to summary
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext)

Implements abstract org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parseInternal.

Doc from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parseInternal.

Central template method to actually parse the supplied Element into one or more BeanDefinitions.

Parameters
element:Element

the element that is to be parsed into one or more BeanDefinitions

parserContext:ParserContext

the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry

Returns:AbstractBeanDefinition

the primary BeanDefinition resulting from the parsing of the supplied Element

Annotations
@Override
resolveIdback to summary
protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Doc from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Resolve the ID for the supplied 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.

Parameters
element:Element

the element that the bean definition has been built from

definition:AbstractBeanDefinition

the bean definition to be registered

parserContext:ParserContext

the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry

Returns:String

the resolved id

Annotations
@Override