org.springframework.context.config
Class MBeanExportBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.context.config.MBeanExportBeanDefinitionParser
- All Implemented Interfaces:
- BeanDefinitionParser
class MBeanExportBeanDefinitionParser
- extends AbstractBeanDefinitionParser
Parser for the <context:mbean-export/> element.
Registers an instance of
AnnotationMBeanExporter
within the context.
- Since:
- 2.5
- Author:
- Juergen Hoeller, Mark Fisher
- See Also:
AnnotationMBeanExporter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBEAN_EXPORTER_BEAN_NAME
private static final java.lang.String MBEAN_EXPORTER_BEAN_NAME
- See Also:
- Constant Field Values
DEFAULT_DOMAIN_ATTRIBUTE
private static final java.lang.String DEFAULT_DOMAIN_ATTRIBUTE
- See Also:
- Constant Field Values
SERVER_ATTRIBUTE
private static final java.lang.String SERVER_ATTRIBUTE
- See Also:
- Constant Field Values
REGISTRATION_ATTRIBUTE
private static final java.lang.String REGISTRATION_ATTRIBUTE
- See Also:
- Constant Field Values
REGISTRATION_IGNORE_EXISTING
private static final java.lang.String REGISTRATION_IGNORE_EXISTING
- See Also:
- Constant Field Values
REGISTRATION_REPLACE_EXISTING
private static final java.lang.String REGISTRATION_REPLACE_EXISTING
- See Also:
- Constant Field Values
MBeanExportBeanDefinitionParser
MBeanExportBeanDefinitionParser()
resolveId
protected java.lang.String resolveId(org.w3c.dom.Element element,
AbstractBeanDefinition definition,
ParserContext parserContext)
- Description copied from class:
AbstractBeanDefinitionParser
- 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.
- Overrides:
resolveId
in class AbstractBeanDefinitionParser
- Parameters:
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
- Returns:
- the resolved id
parseInternal
protected AbstractBeanDefinition parseInternal(org.w3c.dom.Element element,
ParserContext parserContext)
- Description copied from class:
AbstractBeanDefinitionParser
- Central template method to actually parse the supplied
Element
into one or more BeanDefinitions
.
- Specified by:
parseInternal
in class AbstractBeanDefinitionParser
- Parameters:
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
- Returns:
- the primary
BeanDefinition
resulting from the parsing of the supplied Element
- See Also:
AbstractBeanDefinitionParser.parse(org.w3c.dom.Element, ParserContext)
,
AbstractBeanDefinitionParser.postProcessComponentDefinition(org.springframework.beans.factory.parsing.BeanComponentDefinition)