public class org.springframework.jmx.export.naming.KeyNamingStrategy implements org.springframework.jmx.export.naming.ObjectNamingStrategy, org.springframework.beans.factory.InitializingBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.jmx.export.naming.KeyNamingStrategy
super_class: java.lang.Object
{
protected final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
private java.util.Properties mappings;
descriptor: Ljava/util/Properties;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private org.springframework.core.io.Resource[] mappingLocations;
descriptor: [Lorg/springframework/core/io/Resource;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private java.util.Properties mergedMappings;
descriptor: Ljava/util/Properties;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putfield org.springframework.jmx.export.naming.KeyNamingStrategy.logger:Lorg/apache/commons/logging/Log;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jmx/export/naming/KeyNamingStrategy;
public void setMappings(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.jmx.export.naming.KeyNamingStrategy.mappings:Ljava/util/Properties;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jmx/export/naming/KeyNamingStrategy;
0 2 1 mappings Ljava/util/Properties;
MethodParameters:
Name Flags
mappings
public void setMappingLocation(org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
anewarray org.springframework.core.io.Resource
dup
iconst_0
aload 1
aastore
putfield org.springframework.jmx.export.naming.KeyNamingStrategy.mappingLocations:[Lorg/springframework/core/io/Resource;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jmx/export/naming/KeyNamingStrategy;
0 2 1 location Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
location
public void setMappingLocations(org.springframework.core.io.Resource[]);
descriptor: ([Lorg/springframework/core/io/Resource;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.springframework.jmx.export.naming.KeyNamingStrategy.mappingLocations:[Lorg/springframework/core/io/Resource;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jmx/export/naming/KeyNamingStrategy;
0 2 1 mappingLocations [Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
mappingLocations
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
putfield org.springframework.jmx.export.naming.KeyNamingStrategy.mergedMappings:Ljava/util/Properties;
1: aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.mappings:Ljava/util/Properties;
aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.mergedMappings:Ljava/util/Properties;
invokestatic org.springframework.util.CollectionUtils.mergePropertiesIntoMap:(Ljava/util/Properties;Ljava/util/Map;)V
2: aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.mappingLocations:[Lorg/springframework/core/io/Resource;
ifnull 10
3: aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.mappingLocations:[Lorg/springframework/core/io/Resource;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 9
StackMap locals: org.springframework.jmx.export.naming.KeyNamingStrategy top int int org.springframework.core.io.Resource[]
StackMap stack:
4: aload 4
iload 2
aaload
astore 1
start local 1 5: aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.logger:Lorg/apache/commons/logging/Log;
invokeinterface org.apache.commons.logging.Log.isDebugEnabled:()Z
ifeq 7
6: aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.logger:Lorg/apache/commons/logging/Log;
new java.lang.StringBuilder
dup
ldc "Loading JMX object name mappings file from "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
7: StackMap locals: org.springframework.jmx.export.naming.KeyNamingStrategy org.springframework.core.io.Resource int int org.springframework.core.io.Resource[]
StackMap stack:
aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.mergedMappings:Ljava/util/Properties;
aload 1
invokestatic org.springframework.core.io.support.PropertiesLoaderUtils.fillProperties:(Ljava/util/Properties;Lorg/springframework/core/io/Resource;)V
end local 1 8: iinc 2 1
StackMap locals: org.springframework.jmx.export.naming.KeyNamingStrategy top int int org.springframework.core.io.Resource[]
StackMap stack:
9: iload 2
iload 3
if_icmplt 4
10: StackMap locals: org.springframework.jmx.export.naming.KeyNamingStrategy
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/jmx/export/naming/KeyNamingStrategy;
5 8 1 location Lorg/springframework/core/io/Resource;
Exceptions:
throws java.io.IOException
public javax.management.ObjectName getObjectName(java.lang.Object, java.lang.String);
descriptor: (Ljava/lang/Object;Ljava/lang/String;)Ljavax/management/ObjectName;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc "KeyNamingStrategy requires bean key"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aconst_null
astore 3
start local 3 2: aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.mergedMappings:Ljava/util/Properties;
ifnull 4
3: aload 0
getfield org.springframework.jmx.export.naming.KeyNamingStrategy.mergedMappings:Ljava/util/Properties;
aload 2
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
4: StackMap locals: java.lang.String
StackMap stack:
aload 3
ifnonnull 6
5: aload 2
astore 3
6: StackMap locals:
StackMap stack:
aload 3
invokestatic org.springframework.jmx.support.ObjectNameManager.getInstance:(Ljava/lang/String;)Ljavax/management/ObjectName;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/jmx/export/naming/KeyNamingStrategy;
0 7 1 managedBean Ljava/lang/Object;
0 7 2 beanKey Ljava/lang/String;
2 7 3 objectName Ljava/lang/String;
Exceptions:
throws javax.management.MalformedObjectNameException
RuntimeVisibleParameterAnnotations:
0:
1:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
managedBean
beanKey
}
SourceFile: "KeyNamingStrategy.java"