com.zaxxer.hikari.util.JavassistProxyFactory.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HikariCP Show documentation
Show all versions of HikariCP Show documentation
Ultimate JDBC Connection Pool
???? 7?
? ? ?
? ? ?
? ? ?
J ?
?
? ? ? ? ?
J ?
? ? ? ? ? ? ? ? ? ? ? ?
?
J
?
?
? ?
?
?
?
?
?
!"
<#
?$ &
@ ?
?'
?( *
@+
,-. ?/ ?01
?2
?3
@4
56
?7
89:
?;<=>?
@ ?A
?B ?CD
?E
?FG
`H
?I
?JKLM
f ?
?N
O
f+
fPQ
JR
STU
?VW
q ?
JX
qY
q+
JZ
J[
? ?\
?]
^
_`
?abcdefghij kl ml nl ol pl ql rl sl tl
Juv classPool Ljavassist/ClassPool; genDirectory Ljava/lang/String; ()V Code LineNumberTable LocalVariableTable this .Lcom/zaxxer/hikari/util/JavassistProxyFactory; main ([Ljava/lang/String;)V args [Ljava/lang/String;
methodBody
StackMapTable
Exceptionsw modifyProxyFactory method Ljavassist/CtMethod; packageName proxyCt Ljavassist/CtClass;xyz{|} generateProxyClass 8(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)V signature modifiedBody superMethod
intfMethod intfCt intf Ljava/lang/Class; primaryInterface superClassName newClassName superCt targetCt superSigs Ljava/util/HashSet; methods LocalVariableTypeTable Ljava/lang/Class<*>; Ljava/lang/Class; 'Ljava/util/HashSet;~ Signature S(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)V isThrowsSqlException (Ljavassist/CtMethod;)Z clazz isDefaultMethod ((Ljava/lang/Class;Ljavassist/CtMethod;)Z pt
paramTypes Ljava/util/ArrayList; +Ljava/util/ArrayList;>; +(Ljava/lang/Class<*>;Ljavassist/CtMethod;)Z getAllInterfaces "(Ljava/lang/Class;)Ljava/util/Set;
interfaces Ljava/util/LinkedHashSet; /Ljava/util/LinkedHashSet;>; ;(Ljava/lang/Class<*>;)Ljava/util/Set;>; toJavaClass &(Ljavassist/CtClass;)Ljava/lang/Class; cls )(Ljavassist/CtClass;)Ljava/lang/Class<*>; %(Ljava/lang/String;)Ljava/lang/Class; cn ((Ljava/lang/String;)Ljava/lang/Class<*>;
SourceFile JavassistProxyFactory.java ? ? javassist/ClassPool ? ? java.sql?? javassist/LoaderClassPath ,com/zaxxer/hikari/util/JavassistProxyFactory?? ???? ? ? [{ try { return delegate.method($$); } catch (SQLException e) { throw checkException(e); } } java/sql/Connection &com/zaxxer/hikari/pool/ProxyConnection?? ? ? java/sql/Statement %com/zaxxer/hikari/pool/ProxyStatement java/sql/ResultSet %com/zaxxer/hikari/pool/ProxyResultSet java/sql/DatabaseMetaData ,com/zaxxer/hikari/pool/ProxyDatabaseMetaData d{ try { return ((cast) delegate).method($$); } catch (SQLException e) { throw checkException(e); } } java/sql/PreparedStatement -com/zaxxer/hikari/pool/ProxyPreparedStatement java/sql/CallableStatement -com/zaxxer/hikari/pool/ProxyCallableStatement ? ???? AGenerating method bodies for com.zaxxer.hikari.proxy.ProxyFactory?????? #com.zaxxer.hikari.pool.ProxyFactory?????? getProxyConnection?? getProxyStatement getProxyPreparedStatement getProxyCallableStatement getProxyResultSet getProxyDatabaseMetaData BootstrapMethods?????????????? (.+)\.(\w+) $1.Hikari$2???? javassist/Modifier????? java/util/HashSet????????? ? ???????? java/lang/Class??????????? ? ? ((cast) ?? delegate super super) cast ? ? ({ return ((cast) delegate).method($$); }??? ? return???? javassist/bytecode/ClassFile?????? SQLException javassist/NotFoundException java/util/ArrayList?? ? ??? [Ljava/lang/Class;????? default ?? java/util/LinkedHashSet???????? []?? ? ?????? int long short byte float double boolean char void?? ?????????? ? java/lang/Object java/lang/Exception java/lang/String javassist/CtClass [Ljavassist/CtMethod; javassist/CtMethod javassist/CannotCompileException java/io/IOException java/util/Iterator [Ljavassist/CtClass;
importPackage (Ljava/lang/String;)V getClassLoader ()Ljava/lang/ClassLoader; (Ljava/lang/ClassLoader;)V appendClassPath ,(Ljavassist/ClassPath;)Ljavassist/ClassPath; getName ()Ljava/lang/String; java/lang/System out Ljava/io/PrintStream; java/io/PrintStream println
getPackage ()Ljava/lang/Package; java/lang/Package
getCtClass '(Ljava/lang/String;)Ljavassist/CtClass;
getMethods ()[Ljavassist/CtMethod; hashCode ()I equals (Ljava/lang/Object;)Z
?? ){return new .HikariProxyConnection($$);} makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String; setBody ({return new .HikariProxyStatement($$);} 0{return new .HikariProxyPreparedStatement($$);} 0{return new .HikariProxyCallableStatement($$);} ({return new .HikariProxyResultSet($$);} /{return new .HikariProxyDatabaseMetaData($$);} target/classes writeFile
replaceAll 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; makeClass :(Ljava/lang/String;Ljavassist/CtClass;)Ljavassist/CtClass; setPublic (I)I setModifiers (I)V Generating getModifiers getSignature add
java/util/Set iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; addInterface (Ljavassist/CtClass;)V getDeclaredMethods contains javassist/CtNewMethod copy Q(Ljavassist/CtMethod;Ljavassist/CtClass;Ljavassist/ClassMap;)Ljavassist/CtMethod; getMethod :(Ljava/lang/String;Ljava/lang/String;)Ljavassist/CtMethod; replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
getReturnType ()Ljavassist/CtClass; voidType addMethod (Ljavassist/CtMethod;)V getClassFile ()Ljavassist/bytecode/ClassFile; setMajorVersion getExceptionTypes ()[Ljavassist/CtClass;
getSimpleName getParameterTypes toArray (([Ljava/lang/Object;)[Ljava/lang/Object; getDeclaredMethod @(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; java/lang/reflect/Method toString (Ljava/lang/CharSequence;)Z
getInterfaces ()[Ljava/lang/Class; addAll (Ljava/util/Collection;)Z
getSuperclass ()Ljava/lang/Class; isInterface endsWith (Ljava/lang/String;)Z java/lang/reflect/Array newInstance &(Ljava/lang/Class;I)Ljava/lang/Object; getClass java/lang/Integer TYPE java/lang/Long java/lang/Short java/lang/Byte java/lang/Float java/lang/Double java/lang/Boolean java/lang/Character java/lang/Void forName??? $java/lang/invoke/StringConcatFactory? Lookup InnerClasses ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;? %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles 1 ?
? ?
? ?
? ? ? / *? ? ? ' ? ? ? ? ? ? ? ? |? Y? ? ? ? ? ? Y? ?
? W*?? *2?
L? +? ? +? ? +? ? +? L? +? ? +? ? ? ? > -
. / % 1 * 2 0 6 3 7 > 8 I 9 T : _ = b > m ? x A { B ? | ? ? 3 I ? ? ? 0 ? ?
? ? ? ' g? ? ? !? "K? #? $L+? %M,?>6?2,2:? &:6? '? ? ?'? L??- |?=? lV??? ?w?E? <?? \(? )? V6? P*? )? F6? @+? )? 66? 0,? )? &6? -? )? 6? .? )? 6? y % 3 A O ] k*? / ? 0? I*? 1 ? 0? ;*? 2 ? 0? -*? 3 ? 0? *? 4 ? 0? *? 5 ? 0? ????+? ? 6 ? 7? ? R E G H I 1 J L M O P R' S* U5 V8 XC YF [Q \T IZ cf d ? 1# ? ? V ? ? M ? ? ? 0 ? % ? ? ? ? V ? ?&
?
? ? e ? ?
? ? ? G ?+89? :N? +? $:? -? ;:? =? >? -? ? ? ? @Y? A:? %:?66 ? 2 2:
? B~?
? &
? C? D ? EW? ??ͻ @Y? A:*? F? G :? H ?5? I ? J: ? ? ? $:
? K
? L:?66
? ?
2:? &? C? D :? M? ? ?? M? ? ?? EW? N:,:? &? C? O:? B ~ ? . ? P? $QR? S:TU? S:VU? S:W*? ? S:? X? Y? &? S:? ZY? &? SW*? ? S:? [? \? ]R? S:? 0? ^?
?????? _4? a? ? 6 ? 7? ? ? ) k m n o ' q 3 t <