com.zaxxer.hikari.HikariJNDIFactory.class Maven / Gradle / Ivy
???? 4 ? #com/zaxxer/hikari/HikariJNDIFactory java/lang/Object javax/naming/spi/ObjectFactory HikariJNDIFactory.java ()V
this %Lcom/zaxxer/hikari/HikariJNDIFactory; getObjectInstance d(Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object; h(Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable<**>;)Ljava/lang/Object; java/lang/Exception javax/naming/Reference javax.sql.DataSource getClassName ()Ljava/lang/String;
java/lang/String equals (Ljava/lang/Object;)Z
com/zaxxer/hikari/HikariConfig ! "com/zaxxer/hikari/util/PropertyElf # getPropertyNames "(Ljava/lang/Class;)Ljava/util/Set; % &
$ ' java/util/Properties )
*
getAll ()Ljava/util/Enumeration; , -
. javax/naming/Name 0 javax/naming/Context 2 java/util/Hashtable 4
java/util/Set 6 java/util/Enumeration 8 hasMoreElements ()Z : ; 9 < nextElement ()Ljava/lang/Object; > ? 9 @ javax/naming/RefAddr B getType D
C E dataSource. G
startsWith (Ljava/lang/String;)Z I J
K contains M 7 N
getContent P ?
C Q toString S
T setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; V W
* X createDataSource D(Ljava/util/Properties;Ljavax/naming/Context;)Ljavax/sql/DataSource; Z [
\ element Ljavax/naming/RefAddr; type Ljava/lang/String; ref Ljavax/naming/Reference;
hikariPropSet #Ljava/util/Set; Ljava/util/Set;
properties Ljava/util/Properties; enumeration /Ljava/util/Enumeration; Ljava/util/Enumeration; obj Ljava/lang/Object; name Ljavax/naming/Name; nameCtx Ljavax/naming/Context; environment Ljava/util/Hashtable<**>; Ljava/util/Hashtable; javax/naming/NamingException u dataSourceJNDI w getProperty &(Ljava/lang/String;)Ljava/lang/String; y z
* { lookupJndiDataSource V(Ljava/util/Properties;Ljavax/naming/Context;Ljava/lang/String;)Ljavax/sql/DataSource; } ~
"com/zaxxer/hikari/HikariDataSource ? (Ljava/util/Properties;)V ?
" ? #(Lcom/zaxxer/hikari/HikariConfig;)V ?
? ? context jndiName java/lang/RuntimeException ? java/lang/StringBuilder ?
?
1JNDI context does not found for dataSourceJNDI : ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ?
? T (Ljava/lang/String;)V ?
? ? lookup &(Ljava/lang/String;)Ljava/lang/Object; ? ? 3 ? javax/sql/DataSource ? javax/naming/InitialContext ?
?
close ? 3 ?
setDataSource (Ljavax/sql/DataSource;)V ? ?
" ? ic config Lcom/zaxxer/hikari/HikariConfig; jndiDS Ljavax/sql/DataSource; Code LineNumberTable LocalVariableTable
StackMapTable LocalVariableTypeTable
Exceptions Signature
SourceFile ! ? / *? ? ? ( ?
! ? ? ?+? ? }+? ? ? ? n+? :"? (:? *Y? +:? /:? = ? ?? A ? C: ? F:
H? L?
? O ?
? R? U? YW???*-? ]?? ? G ? 3 1 3 5 7 * 9 ? 2 C ? ? 1 3 5 ? 6
. / 0 # 2 , 3 3 4 = 5 I 6 P 7 f 8 v : y ; ? = ? p I - ^ _ P &