class MBeanServerBeanDefinitionParser extends AbstractBeanDefinitionParser
Registers an instance of
AnnotationMBeanExporter
within the context.
AnnotationMBeanExporter
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
AGENT_ID_ATTRIBUTE |
private static java.lang.String |
MBEAN_SERVER_BEAN_NAME |
private static boolean |
weblogicPresent |
private static boolean |
webspherePresent |
ID_ATTRIBUTE, NAME_ATTRIBUTE
Constructor and Description |
---|
MBeanServerBeanDefinitionParser() |
Modifier and Type | Method and Description |
---|---|
(package private) static AbstractBeanDefinition |
findServerForSpecialEnvironment() |
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
private static final java.lang.String MBEAN_SERVER_BEAN_NAME
private static final java.lang.String AGENT_ID_ATTRIBUTE
private static final boolean weblogicPresent
private static final boolean webspherePresent
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)
static AbstractBeanDefinition findServerForSpecialEnvironment()