class org.springframework.context.config.MBeanServerBeanDefinitionParser extends org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.context.config.MBeanServerBeanDefinitionParser
super_class: org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
{
private static final java.lang.String MBEAN_SERVER_BEAN_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "mbeanServer"
private static final java.lang.String AGENT_ID_ATTRIBUTE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "agent-id"
private static final boolean weblogicPresent;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean webspherePresent;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc Lorg/springframework/context/config/MBeanServerBeanDefinitionParser;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 0
start local 0 1: ldc "weblogic.management.Helper"
aload 0
invokestatic org.springframework.util.ClassUtils.isPresent:(Ljava/lang/String;Ljava/lang/ClassLoader;)Z
putstatic org.springframework.context.config.MBeanServerBeanDefinitionParser.weblogicPresent:Z
2: ldc "com.ibm.websphere.management.AdminServiceFactory"
aload 0
invokestatic org.springframework.util.ClassUtils.isPresent:(Ljava/lang/String;Ljava/lang/ClassLoader;)Z
putstatic org.springframework.context.config.MBeanServerBeanDefinitionParser.webspherePresent:Z
end local 0 3: return
LocalVariableTable:
Start End Slot Name Signature
1 3 0 classLoader Ljava/lang/ClassLoader;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/context/config/MBeanServerBeanDefinitionParser;
protected java.lang.String resolveId(org.w3c.dom.Element, org.springframework.beans.factory.support.AbstractBeanDefinition, org.springframework.beans.factory.xml.ParserContext);
descriptor: (Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/support/AbstractBeanDefinition;Lorg/springframework/beans/factory/xml/ParserContext;)Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ldc "id"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 1: aload 4
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 2
aload 4
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: ldc "mbeanServer"
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/context/config/MBeanServerBeanDefinitionParser;
0 4 1 element Lorg/w3c/dom/Element;
0 4 2 definition Lorg/springframework/beans/factory/support/AbstractBeanDefinition;
0 4 3 parserContext Lorg/springframework/beans/factory/xml/ParserContext;
1 4 4 id Ljava/lang/String;
MethodParameters:
Name Flags
element
definition
parserContext
protected org.springframework.beans.factory.support.AbstractBeanDefinition parseInternal(org.w3c.dom.Element, org.springframework.beans.factory.xml.ParserContext);
descriptor: (Lorg/w3c/dom/Element;Lorg/springframework/beans/factory/xml/ParserContext;)Lorg/springframework/beans/factory/support/AbstractBeanDefinition;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "agent-id"
invokeinterface org.w3c.dom.Element.getAttribute:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 5
2: new org.springframework.beans.factory.support.RootBeanDefinition
dup
ldc Lorg/springframework/jmx/support/MBeanServerFactoryBean;
invokespecial org.springframework.beans.factory.support.RootBeanDefinition.<init>:(Ljava/lang/Class;)V
astore 4
start local 4 3: aload 4
invokevirtual org.springframework.beans.factory.support.RootBeanDefinition.getPropertyValues:()Lorg/springframework/beans/MutablePropertyValues;
ldc "agentId"
aload 3
invokevirtual org.springframework.beans.MutablePropertyValues.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;
pop
4: aload 4
areturn
end local 4 5: StackMap locals: java.lang.String
StackMap stack:
invokestatic org.springframework.context.config.MBeanServerBeanDefinitionParser.findServerForSpecialEnvironment:()Lorg/springframework/beans/factory/support/AbstractBeanDefinition;
astore 4
start local 4 6: aload 4
ifnull 8
7: aload 4
areturn
8: StackMap locals: org.springframework.beans.factory.support.AbstractBeanDefinition
StackMap stack:
new org.springframework.beans.factory.support.RootBeanDefinition
dup
ldc Lorg/springframework/jmx/support/MBeanServerFactoryBean;
invokespecial org.springframework.beans.factory.support.RootBeanDefinition.<init>:(Ljava/lang/Class;)V
astore 5
start local 5 9: aload 5
invokevirtual org.springframework.beans.factory.support.RootBeanDefinition.getPropertyValues:()Lorg/springframework/beans/MutablePropertyValues;
ldc "locateExistingServerIfPossible"
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
invokevirtual org.springframework.beans.MutablePropertyValues.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;
pop
10: aload 5
iconst_2
invokevirtual org.springframework.beans.factory.support.RootBeanDefinition.setRole:(I)V
11: aload 5
aload 2
aload 1
invokevirtual org.springframework.beans.factory.xml.ParserContext.extractSource:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual org.springframework.beans.factory.support.RootBeanDefinition.setSource:(Ljava/lang/Object;)V
12: aload 5
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/context/config/MBeanServerBeanDefinitionParser;
0 13 1 element Lorg/w3c/dom/Element;
0 13 2 parserContext Lorg/springframework/beans/factory/xml/ParserContext;
1 13 3 agentId Ljava/lang/String;
3 5 4 bd Lorg/springframework/beans/factory/support/RootBeanDefinition;
6 13 4 specialServer Lorg/springframework/beans/factory/support/AbstractBeanDefinition;
9 13 5 bd Lorg/springframework/beans/factory/support/RootBeanDefinition;
MethodParameters:
Name Flags
element
parserContext
static org.springframework.beans.factory.support.AbstractBeanDefinition findServerForSpecialEnvironment();
descriptor: ()Lorg/springframework/beans/factory/support/AbstractBeanDefinition;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.springframework.context.config.MBeanServerBeanDefinitionParser.weblogicPresent:Z
ifeq 4
1: new org.springframework.beans.factory.support.RootBeanDefinition
dup
ldc Lorg/springframework/jndi/JndiObjectFactoryBean;
invokespecial org.springframework.beans.factory.support.RootBeanDefinition.<init>:(Ljava/lang/Class;)V
astore 0
start local 0 2: aload 0
invokevirtual org.springframework.beans.factory.support.RootBeanDefinition.getPropertyValues:()Lorg/springframework/beans/MutablePropertyValues;
ldc "jndiName"
ldc "java:comp/env/jmx/runtime"
invokevirtual org.springframework.beans.MutablePropertyValues.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;
pop
3: aload 0
areturn
end local 0 4: StackMap locals:
StackMap stack:
getstatic org.springframework.context.config.MBeanServerBeanDefinitionParser.webspherePresent:Z
ifeq 6
5: new org.springframework.beans.factory.support.RootBeanDefinition
dup
ldc Lorg/springframework/jmx/support/WebSphereMBeanServerFactoryBean;
invokespecial org.springframework.beans.factory.support.RootBeanDefinition.<init>:(Ljava/lang/Class;)V
areturn
6: StackMap locals:
StackMap stack:
aconst_null
areturn
LocalVariableTable:
Start End Slot Name Signature
2 4 0 bd Lorg/springframework/beans/factory/support/RootBeanDefinition;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
}
SourceFile: "MBeanServerBeanDefinitionParser.java"