org.springframework.context.config
Class MBeanExportBeanDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by 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

Field Summary
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
           
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
MBeanExportBeanDefinitionParser()
           
 
Method Summary
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.
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MBeanExportBeanDefinitionParser

MBeanExportBeanDefinitionParser()
Method Detail

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 from
definition - the bean definition to be registered
parserContext - 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)