public class org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup extends org.springframework.jndi.JndiLocatorSupport implements org.springframework.jdbc.datasource.lookup.DataSourceLookup
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup
super_class: org.springframework.jndi.JndiLocatorSupport
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 // org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup this
0: .line 38
aload 0 /* this */
invokespecial org.springframework.jndi.JndiLocatorSupport.<init>:()V
1: .line 39
aload 0 /* this */
iconst_1
invokevirtual org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup.setResourceRef:(Z)V
2: .line 40
return
end local 0 // org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/jdbc/datasource/lookup/JndiDataSourceLookup;
public javax.sql.DataSource getDataSource(java.lang.String);
descriptor: (Ljava/lang/String;)Ljavax/sql/DataSource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 // org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup this
start local 1 // java.lang.String dataSourceName
0: .line 45
aload 0 /* this */
aload 1 /* dataSourceName */
ldc Ljavax/sql/DataSource;
invokevirtual org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup.lookup:(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
checkcast javax.sql.DataSource
1: areturn
2: .line 47
StackMap locals:
StackMap stack: javax.naming.NamingException
astore 2 /* ex */
start local 2 // javax.naming.NamingException ex
3: .line 48
new org.springframework.jdbc.datasource.lookup.DataSourceLookupFailureException
dup
4: .line 49
new java.lang.StringBuilder
dup
ldc "Failed to look up JNDI DataSource with name '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* dataSourceName */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2 /* ex */
5: .line 48
invokespecial org.springframework.jdbc.datasource.lookup.DataSourceLookupFailureException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 // javax.naming.NamingException ex
end local 1 // java.lang.String dataSourceName
end local 0 // org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/jdbc/datasource/lookup/JndiDataSourceLookup;
0 6 1 dataSourceName Ljava/lang/String;
3 6 2 ex Ljavax/naming/NamingException;
Exception table:
from to target type
0 1 2 Class javax.naming.NamingException
Exceptions:
throws org.springframework.jdbc.datasource.lookup.DataSourceLookupFailureException
MethodParameters:
Name Flags
dataSourceName
}
SourceFile: "JndiDataSourceLookup.java"