public class org.springframework.jdbc.datasource.init.DataSourceInitializer implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.jdbc.datasource.init.DataSourceInitializer
super_class: java.lang.Object
{
private javax.sql.DataSource dataSource;
descriptor: Ljavax/sql/DataSource;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private org.springframework.jdbc.datasource.init.DatabasePopulator databasePopulator;
descriptor: Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private org.springframework.jdbc.datasource.init.DatabasePopulator databaseCleaner;
descriptor: Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private boolean enabled;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
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
iconst_1
putfield org.springframework.jdbc.datasource.init.DataSourceInitializer.enabled:Z
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
public void setDataSource(javax.sql.DataSource);
descriptor: (Ljavax/sql/DataSource;)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.jdbc.datasource.init.DataSourceInitializer.dataSource:Ljavax/sql/DataSource;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
0 2 1 dataSource Ljavax/sql/DataSource;
MethodParameters:
Name Flags
dataSource
public void setDatabasePopulator(org.springframework.jdbc.datasource.init.DatabasePopulator);
descriptor: (Lorg/springframework/jdbc/datasource/init/DatabasePopulator;)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.jdbc.datasource.init.DataSourceInitializer.databasePopulator:Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
0 2 1 databasePopulator Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
MethodParameters:
Name Flags
databasePopulator
public void setDatabaseCleaner(org.springframework.jdbc.datasource.init.DatabasePopulator);
descriptor: (Lorg/springframework/jdbc/datasource/init/DatabasePopulator;)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.jdbc.datasource.init.DataSourceInitializer.databaseCleaner:Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
0 2 1 databaseCleaner Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
MethodParameters:
Name Flags
databaseCleaner
public void setEnabled(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.jdbc.datasource.init.DataSourceInitializer.enabled:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
0 2 1 enabled Z
MethodParameters:
Name Flags
enabled
public void afterPropertiesSet();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.springframework.jdbc.datasource.init.DataSourceInitializer.databasePopulator:Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
invokevirtual org.springframework.jdbc.datasource.init.DataSourceInitializer.execute:(Lorg/springframework/jdbc/datasource/init/DatabasePopulator;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
public void destroy();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.springframework.jdbc.datasource.init.DataSourceInitializer.databaseCleaner:Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
invokevirtual org.springframework.jdbc.datasource.init.DataSourceInitializer.execute:(Lorg/springframework/jdbc/datasource/init/DatabasePopulator;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
private void execute(org.springframework.jdbc.datasource.init.DatabasePopulator);
descriptor: (Lorg/springframework/jdbc/datasource/init/DatabasePopulator;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.jdbc.datasource.init.DataSourceInitializer.dataSource:Ljavax/sql/DataSource;
ifnull 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ldc "DataSource must be set"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
3: aload 0
getfield org.springframework.jdbc.datasource.init.DataSourceInitializer.enabled:Z
ifeq 5
aload 1
ifnull 5
4: aload 1
aload 0
getfield org.springframework.jdbc.datasource.init.DataSourceInitializer.dataSource:Ljavax/sql/DataSource;
invokestatic org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute:(Lorg/springframework/jdbc/datasource/init/DatabasePopulator;Ljavax/sql/DataSource;)V
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/jdbc/datasource/init/DataSourceInitializer;
0 6 1 populator Lorg/springframework/jdbc/datasource/init/DatabasePopulator;
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
populator
}
SourceFile: "DataSourceInitializer.java"