com.groupbyinc.flux.common.apache.lucene.analysis.util.ClasspathResourceLoader.class Maven / Gradle / Ivy
???? 4 ? Ncom/groupbyinc/flux/common/apache/lucene/analysis/util/ClasspathResourceLoader java/lang/Object Ecom/groupbyinc/flux/common/apache/lucene/analysis/util/ResourceLoader ClasspathResourceLoader.java clazz Ljava/lang/Class; Ljava/lang/Class<*>; loader Ljava/lang/ClassLoader; ()V Ljava/lang/Deprecated; ALcom/groupbyinc/flux/common/apache/lucene/util/SuppressForbidden; reason ZDeprecated method uses thread's context classloader, but there for backwards compatibility java/lang/Thread
currentThread ()Ljava/lang/Thread;
getContextClassLoader ()Ljava/lang/ClassLoader;
(Ljava/lang/ClassLoader;)V
this PLcom/groupbyinc/flux/common/apache/lucene/analysis/util/ClasspathResourceLoader; +(Ljava/lang/Class;Ljava/lang/ClassLoader;)V
"
# (Ljava/lang/Class;)V java/lang/Class & getClassLoader (
' )
+ - / openResource )(Ljava/lang/String;)Ljava/io/InputStream; java/io/IOException 3 getResourceAsStream 5 2
' 6 java/lang/ClassLoader 8
9 6 java/io/InputStream ; java/lang/StringBuilder =
> + Resource not found: @ append -(Ljava/lang/String;)Ljava/lang/StringBuilder; B C
> D toString ()Ljava/lang/String; F G
> H (Ljava/lang/String;)V
J
4 K resource Ljava/lang/String; stream Ljava/io/InputStream; findClass 6(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class; java/lang/Exception S forName =(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class; U V
' W
asSubclass $(Ljava/lang/Class;)Ljava/lang/Class; Y Z
' [ java/lang/RuntimeException ] Cannot load class: _ *(Ljava/lang/String;Ljava/lang/Throwable;)V
a
^ b e Ljava/lang/Exception; cname expectedType Ljava/lang/Class; newInstance 7(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object; Q R
k ()Ljava/lang/Object; i m
' n java/lang/String p Cannot create instance: r Ljava/lang/Class<+TT;>; Signature Code LocalVariableTable LineNumberTable
Deprecated RuntimeVisibleAnnotations RuntimeInvisibleAnnotations LocalVariableTypeTable (Ljava/lang/Class<*>;)V .(Ljava/lang/Class<*>;Ljava/lang/ClassLoader;)V
StackMapTable
Exceptions W(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Class<+TT;>; C(Ljava/lang/String;Ljava/lang/Class;)TT;
SourceFile 1 u
v 9 *? ? ? ? w ! x
/
0 y z { s
v ? *+? $? w ! x
7 8
% v T
*++? *? $? w
!
|
x
? @ u }
" v k *? ,*+? .*,? 0? w ! |
x B C D E u ~ 1 2 v ? <*? .? *? .+? 7? *? 0+? :M,? ? 4Y? >Y? ?A? E+? E? I? L?,? w <