class org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar
super_class: java.lang.Object
{
private final org.springframework.core.env.Environment environment;
descriptor: Lorg/springframework/core/env/Environment;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.core.io.ResourceLoader resourceLoader;
descriptor: Lorg/springframework/core/io/ResourceLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.springframework.core.env.Environment, org.springframework.core.io.ResourceLoader);
descriptor: (Lorg/springframework/core/env/Environment;Lorg/springframework/core/io/ResourceLoader;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.environment:Lorg/springframework/core/env/Environment;
2: aload 0
aload 2
putfield org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 4 1 environment Lorg/springframework/core/env/Environment;
0 4 2 resourceLoader Lorg/springframework/core/io/ResourceLoader;
MethodParameters:
Name Flags
environment
resourceLoader
public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry);
descriptor: (Lorg/springframework/core/type/AnnotationMetadata;Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.getPackagesToScan:(Lorg/springframework/core/type/AnnotationMetadata;)Ljava/util/Set;
astore 3
start local 3 1: aload 0
aload 2
aload 3
invokevirtual org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.scan:(Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;Ljava/util/Set;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 3 1 importingClassMetadata Lorg/springframework/core/type/AnnotationMetadata;
0 3 2 registry Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;
1 3 3 packagesToScan Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
importingClassMetadata
registry
private java.util.Set<java.lang.String> getPackagesToScan(org.springframework.core.type.AnnotationMetadata);
descriptor: (Lorg/springframework/core/type/AnnotationMetadata;)Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=10, args_size=2
start local 0 start local 1 0: aload 1
ldc Lorg/springframework/boot/context/properties/ConfigurationPropertiesScan;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokeinterface org.springframework.core.type.AnnotationMetadata.getAnnotationAttributes:(Ljava/lang/String;)Ljava/util/Map;
invokestatic org.springframework.core.annotation.AnnotationAttributes.fromMap:(Ljava/util/Map;)Lorg/springframework/core/annotation/AnnotationAttributes;
1: astore 2
start local 2 2: aload 2
ldc "basePackages"
invokevirtual org.springframework.core.annotation.AnnotationAttributes.getStringArray:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 3: aload 2
ldc "basePackageClasses"
invokevirtual org.springframework.core.annotation.AnnotationAttributes.getClassArray:(Ljava/lang/String;)[Ljava/lang/Class;
astore 4
start local 4 4: new java.util.LinkedHashSet
dup
aload 3
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial java.util.LinkedHashSet.<init>:(Ljava/util/Collection;)V
astore 5
start local 5 5: aload 4
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 9
StackMap locals: org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar org.springframework.core.type.AnnotationMetadata org.springframework.core.annotation.AnnotationAttributes java.lang.String[] java.lang.Class[] java.util.Set top int int java.lang.Class[]
StackMap stack:
6: aload 9
iload 7
aaload
astore 6
start local 6 7: aload 5
aload 6
invokestatic org.springframework.util.ClassUtils.getPackageName:(Ljava/lang/Class;)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 6 8: iinc 7 1
StackMap locals:
StackMap stack:
9: iload 7
iload 8
if_icmplt 6
10: aload 5
invokeinterface java.util.Set.isEmpty:()Z
ifeq 12
11: aload 5
aload 1
invokeinterface org.springframework.core.type.AnnotationMetadata.getClassName:()Ljava/lang/String;
invokestatic org.springframework.util.ClassUtils.getPackageName:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
12: StackMap locals: org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar org.springframework.core.type.AnnotationMetadata org.springframework.core.annotation.AnnotationAttributes java.lang.String[] java.lang.Class[] java.util.Set
StackMap stack:
aload 5
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar.lambda$0(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.Set.removeIf:(Ljava/util/function/Predicate;)Z
pop
13: 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 14 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 14 1 metadata Lorg/springframework/core/type/AnnotationMetadata;
2 14 2 attributes Lorg/springframework/core/annotation/AnnotationAttributes;
3 14 3 basePackages [Ljava/lang/String;
4 14 4 basePackageClasses [Ljava/lang/Class;
5 14 5 packagesToScan Ljava/util/Set<Ljava/lang/String;>;
7 8 6 basePackageClass Ljava/lang/Class<*>;
Signature: (Lorg/springframework/core/type/AnnotationMetadata;)Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
metadata
private void scan(org.springframework.beans.factory.support.BeanDefinitionRegistry, java.util.Set<java.lang.String>);
descriptor: (Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=9, args_size=3
start local 0 start local 1 start local 2 0: new org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar
dup
aload 1
invokespecial org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar.<init>:(Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)V
astore 3
start local 3 1: aload 0
aload 1
invokevirtual org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.getScanner:(Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)Lorg/springframework/context/annotation/ClassPathScanningCandidateComponentProvider;
astore 4
start local 4 2: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 8
StackMap locals: org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar org.springframework.beans.factory.support.BeanDefinitionRegistry java.util.Set org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 4
aload 5
invokevirtual org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents:(Ljava/lang/String;)Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 8
goto 7
StackMap locals: org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar org.springframework.beans.factory.support.BeanDefinitionRegistry java.util.Set org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider java.lang.String java.util.Iterator top java.util.Iterator
StackMap stack:
5: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.beans.factory.config.BeanDefinition
astore 7
start local 7 6: aload 0
aload 3
aload 7
invokeinterface org.springframework.beans.factory.config.BeanDefinition.getBeanClassName:()Ljava/lang/String;
invokevirtual org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.register:(Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;Ljava/lang/String;)V
end local 7 7: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
end local 5 8: StackMap locals: org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar org.springframework.beans.factory.support.BeanDefinitionRegistry java.util.Set org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 10 1 registry Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;
0 10 2 packages Ljava/util/Set<Ljava/lang/String;>;
1 10 3 registrar Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;
2 10 4 scanner Lorg/springframework/context/annotation/ClassPathScanningCandidateComponentProvider;
4 8 5 basePackage Ljava/lang/String;
6 7 7 candidate Lorg/springframework/beans/factory/config/BeanDefinition;
Signature: (Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
registry
packages
private org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider getScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry);
descriptor: (Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;)Lorg/springframework/context/annotation/ClassPathScanningCandidateComponentProvider;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
dup
iconst_0
invokespecial org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.<init>:(Z)V
astore 2
start local 2 1: aload 2
aload 0
getfield org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.environment:Lorg/springframework/core/env/Environment;
invokevirtual org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.setEnvironment:(Lorg/springframework/core/env/Environment;)V
2: aload 2
aload 0
getfield org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
invokevirtual org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.setResourceLoader:(Lorg/springframework/core/io/ResourceLoader;)V
3: aload 2
new org.springframework.core.type.filter.AnnotationTypeFilter
dup
ldc Lorg/springframework/boot/context/properties/ConfigurationProperties;
invokespecial org.springframework.core.type.filter.AnnotationTypeFilter.<init>:(Ljava/lang/Class;)V
invokevirtual org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.addIncludeFilter:(Lorg/springframework/core/type/filter/TypeFilter;)V
4: new org.springframework.boot.context.TypeExcludeFilter
dup
invokespecial org.springframework.boot.context.TypeExcludeFilter.<init>:()V
astore 3
start local 3 5: aload 3
aload 1
checkcast org.springframework.beans.factory.BeanFactory
invokevirtual org.springframework.boot.context.TypeExcludeFilter.setBeanFactory:(Lorg/springframework/beans/factory/BeanFactory;)V
6: aload 2
aload 3
invokevirtual org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.addExcludeFilter:(Lorg/springframework/core/type/filter/TypeFilter;)V
7: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 8 1 registry Lorg/springframework/beans/factory/support/BeanDefinitionRegistry;
1 8 2 scanner Lorg/springframework/context/annotation/ClassPathScanningCandidateComponentProvider;
5 8 3 typeExcludeFilter Lorg/springframework/boot/context/TypeExcludeFilter;
MethodParameters:
Name Flags
registry
private void register(org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar, java.lang.String);
descriptor: (Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokestatic org.springframework.util.ClassUtils.forName:(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/lang/Class;
invokevirtual org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.register:(Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;Ljava/lang/Class;)V
1: goto 3
2: StackMap locals:
StackMap stack: java.lang.ClassNotFoundException
pop
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 4 1 registrar Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;
0 4 2 className Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.ClassNotFoundException
Exceptions:
throws java.lang.LinkageError
MethodParameters:
Name Flags
registrar
className
private void register(org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar, java.lang.Class<?>);
descriptor: (Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;Ljava/lang/Class;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.springframework.boot.context.properties.ConfigurationPropertiesScanRegistrar.isComponent:(Ljava/lang/Class;)Z
ifne 2
1: aload 1
aload 2
invokevirtual org.springframework.boot.context.properties.ConfigurationPropertiesBeanRegistrar.register:(Ljava/lang/Class;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 3 1 registrar Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;
0 3 2 type Ljava/lang/Class<*>;
Signature: (Lorg/springframework/boot/context/properties/ConfigurationPropertiesBeanRegistrar;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
registrar
type
private boolean isComponent(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.springframework.core.annotation.MergedAnnotations$SearchStrategy.TYPE_HIERARCHY:Lorg/springframework/core/annotation/MergedAnnotations$SearchStrategy;
invokestatic org.springframework.core.annotation.MergedAnnotations.from:(Ljava/lang/reflect/AnnotatedElement;Lorg/springframework/core/annotation/MergedAnnotations$SearchStrategy;)Lorg/springframework/core/annotation/MergedAnnotations;
ldc Lorg/springframework/stereotype/Component;
invokeinterface org.springframework.core.annotation.MergedAnnotations.isPresent:(Ljava/lang/Class;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/context/properties/ConfigurationPropertiesScanRegistrar;
0 1 1 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type
private static boolean lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.springframework.util.StringUtils.hasText:(Ljava/lang/String;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 candidate Ljava/lang/String;
}
SourceFile: "ConfigurationPropertiesScanRegistrar.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final SearchStrategy = org.springframework.core.annotation.MergedAnnotations$SearchStrategy of org.springframework.core.annotation.MergedAnnotations