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

pack-priv Class MBeanServerBeanDefinitionParser

extends AbstractBeanDefinitionParser
Class Inheritance
Imports
org.w3c.dom.Element, org.springframework.beans.factory.config.BeanDefinition, org.springframework.beans.factory.support.AbstractBeanDefinition, .RootBeanDefinition, org.springframework.beans.factory.xml.AbstractBeanDefinitionParser, .ParserContext, org.springframework.jmx.support.MBeanServerFactoryBean, org.springframework.util.StringUtils

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

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

Authors
Mark Fisher, Juergen Hoeller
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
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

AGENT_ID_ATTRIBUTEback to summary
private static final String AGENT_ID_ATTRIBUTE
MBEAN_SERVER_BEAN_NAMEback to summary
private static final String MBEAN_SERVER_BEAN_NAME

Constructor Detail

MBeanServerBeanDefinitionParserback to summary
pack-priv MBeanServerBeanDefinitionParser()

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