All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.core.cls.ClassFinder.class Maven / Gradle / Ivy

Go to download

TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)

There is a newer version: 2.5.2
Show newest version
????=	!de/tsl2/nano/core/cls/ClassFinderself#Lde/tsl2/nano/core/cls/ClassFinder;
	
()V

java/lang/Thread
currentThread()Ljava/lang/Thread;
getContextClassLoader()Ljava/lang/ClassLoader;
	(Ljava/lang/ClassLoader;)V
java/lang/Object
initjava/util/HashSet
	"#$packageNamesLjava/util/Set;	&'$classes
)*+,java/lang/ClassLoadergetSystemClassLoader
./0
addClasses?(Ljava/lang/ClassLoader;Ljava/util/Set;)Ljava/lang/ClassLoader;	23456java/lang/SystemoutLjava/io/PrintStream;
89:;
java/io/PrintStreamprintln=java/lang/Exception
<?@
printStackTrace	BCDLOG Lorg/apache/commons/logging/Log;FE---------------------------------------------------------------------HIJKLorg/apache/commons/logging/Loginfo(Ljava/lang/Object;)VNOPQR
java/util/Setsize()ITUVmakeConcatWithConstants(II)Ljava/lang/String;
XYZ"addPrivateOracleClassLoaderClasses)(Ljava/lang/ClassLoader;Ljava/util/Set;)V
\]0collectPackageClasses
)_`	getParentb%de/tsl2/nano/core/cls/PrivateAccessor
ad	L'gjava/util/ArrayList
aijkmember7(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;mjava/util/CollectionNopqaddAll(Ljava/util/Collection;)ZsUt+(Ljava/lang/ClassLoader;)Ljava/lang/String;HvwLwarn
yz%()Lde/tsl2/nano/core/cls/ClassFinder;
|}~?java/util/ArraysasList%([Ljava/lang/Object;)Ljava/util/List;
|???stream.([Ljava/lang/Object;)Ljava/util/stream/Stream;???accept()Ljava/util/function/Consumer;?????java/util/stream/StreamforEach (Ljava/util/function/Consumer;)V?0de/tsl2/nano/core/classloader/RuntimeClassloader
????getPackages()[Ljava/lang/Package;
???java/lang/PackageH??Ldebug?U?,(ILjava/lang/ClassLoader;)Ljava/lang/String;
?]?>(Ljava/lang/ClassLoader;Ljava/util/Set;Z[Ljava/lang/Package;)V?
????getName()Ljava/lang/String;N???contains(Ljava/lang/Object;)Z
?]?P(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/util/Set;)Ljava/util/Collection;H???isDebugEnabled()Z?U?&(Ljava/lang/String;)Ljava/lang/String;
8???print(Ljava/lang/String;)V
?????java/lang/Stringreplace(CC)Ljava/lang/String;
)???getResources+(Ljava/lang/String;)Ljava/util/Enumeration;?????java/util/EnumerationhasMoreElements????nextElement()Ljava/lang/Object;?java/net/URL?java/io/BufferedReader?java/io/InputStreamReader
????
getContent?java/io/InputStream
??	?(Ljava/io/InputStream;)V
??	?(Ljava/io/Reader;)V
????readLine?.class
????endsWith(Ljava/lang/String;)Z?.
????lastIndexOf(I)I
???V	substring?U?8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
)???	loadClass%(Ljava/lang/String;)Ljava/lang/Class;N???add? java/lang/ClassNotFoundException?java/lang/NoClassDefFoundError
???"de/tsl2/nano/core/ManagedExceptionhandleError(Ljava/lang/Throwable;)V
8;(I)Vjava/io/IOException
?	
forward,(Ljava/lang/Throwable;)Ljava/lang/Throwable;

getImplementations"(Ljava/lang/Class;)Ljava/util/Set;
?
getAnnotation4(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;'de/tsl2/nano/core/cls/PackageDescriptorimplementations()[Ljava/lang/Class;
java/util/ServiceLoaderloadC(Ljava/lang/Class;Ljava/lang/ClassLoader;)Ljava/util/ServiceLoader;
 !"iterator()Ljava/util/Iterator;$%&'?java/util/IteratorhasNext$)*?next
,-.getClass()Ljava/lang/Class;
012	fuzzyFindF(Ljava/lang/String;Ljava/lang/Class;ILjava/lang/Class;)Ljava/util/Map;45678
java/util/Mapvalues()Ljava/util/Collection;
:1;#(Ljava/lang/String;)Ljava/util/Map;4O
>?@ABjava/lang/DoublevalueOf(D)Ljava/lang/Double;4DE?containsKey4GHIget&(Ljava/lang/Object;)Ljava/lang/Object;Kjava/lang/ClassMUN'(ILjava/lang/String;)Ljava/lang/String;Pjava/util/LinkedList
Ol 
TU?toString
?WX?matchesZ?[java/util/ListZO^U_(I)Ljava/lang/String;
8a;?	cdemethodCountIgde/tsl2/nano/core/util/ListSet
f	j?kv(Lde/tsl2/nano/core/cls/ClassFinder;Ljava/util/List;Ljava/lang/String;ILjava/lang/Class;)Ljava/util/function/Consumer;N?
^opqcompare()Ljava/util/Comparator;
stuvwjava/util/Collectionssort)(Ljava/util/List;Ljava/util/Comparator;)V
yz{|}java/lang/reflect/ModifierisPublic(I)Z
J??
getMethods()[Ljava/lang/reflect/Method;
J???getDeclaredMethods
????Rjava/lang/reflect/MethodgetModifiers
?
?T
J???
getSimpleName?null?U?9(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
???createFuzzyMap"(Ljava/lang/Class;)Ljava/util/Map;
???addFromServiceLoader(Ljava/lang/Class;)V
J???isAssignableFrom(Ljava/lang/Class;)Z
???addFromPackageAnnotation?java/lang/reflect/FieldN 
J?
J
J?
?????!de/tsl2/nano/core/util/StringUtil
fuzzyMatch'(Ljava/lang/Object;Ljava/lang/String;)D
???equals4???put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
???fuzzyFindMethodsF(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Class;)Ljava/util/Map;4???putAll(Ljava/util/Map;)V
???fuzzyFindFields?#de/tsl2/nano/core/cls/ClassFinder$1
??	?&(Lde/tsl2/nano/core/cls/ClassFinder;)V
???doGet6(Ljava/lang/Class;)Lde/tsl2/nano/core/util/SupplierEx;
????trYErrorN(Lde/tsl2/nano/core/util/SupplierEx;Z[Ljava/lang/Exception;)Ljava/lang/Object;?java/lang/reflect/Method;?
????toGenericString
J???	getFields()[Ljava/lang/reflect/Field;
J???getDeclaredFields
??
?
????\.?/
????
replaceAll
f?java.class.path
2???getProperty?path.separator
????split'(Ljava/lang/String;)[Ljava/lang/String;?.jar?java/io/File
??	??java/util/jar/JarInputStream?java/io/FileInputStream
??	?(Ljava/io/File;)V
??
?getNextJarEntry()Ljava/util/jar/JarEntry;
?java/util/jar/JarEntry
??	(Ljava/lang/CharSequence;)Z
?Rlength[\|/]
?
closejava/lang/Throwable

addSuppressed	?
separatorCharCU9(Ljava/lang/String;CLjava/lang/String;)Ljava/lang/String;
? ?exists
?"#$	listFiles()[Ljava/io/File;
??
J'(?forName^
?+,-	compareTo(Ljava/lang/String;)I
/01matchingMethodsG(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Class;)Ljava/util/List;Zo
J456
getPackage()Ljava/lang/Package;
89:getClassesInPackage;(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;
<=>?@ de/tsl2/nano/core/log/LogFactorygetLog3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;	Signature#Ljava/util/Set;%Ljava/util/Set;>;CodeLineNumberTable
StackMapTableLocalVariableTablethisclassLoaderLjava/lang/ClassLoader;eLjava/lang/Exception;LocalVariableTypeTableU(Ljava/lang/ClassLoader;Ljava/util/Set;>;)Ljava/lang/ClassLoader;ex
Deprecated?(Ljava/lang/ClassLoader;Ljava/util/Set;>;)VRuntimeVisibleAnnotationsLjava/lang/Deprecated;([Ljava/lang/Class;)V[Ljava/lang/Class;[Ljava/lang/Class<*>;([Ljava/lang/Class<*>;)VloadAllClassesInEachPackageclpackages[Ljava/lang/Package;[iforceZT(Ljava/lang/ClassLoader;Ljava/util/Set;>;Z[Ljava/lang/Package;)VLjava/lang/Throwable;upackageLjava/net/URL;disLjava/io/BufferedReader;lineLjava/lang/String;	upackagesLjava/util/Enumeration;e1Ljava/io/IOException;pack'Ljava/util/Enumeration;|(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/util/Set;>;)Ljava/util/Collection;>;packageDescriptorLjava/lang/Class;=Ljava/lang/Class<+Lde/tsl2/nano/core/cls/PackageDescriptor;>;@(Ljava/lang/Class<+Lde/tsl2/nano/core/cls/PackageDescriptor;>;)Va)Lde/tsl2/nano/core/cls/PackageDescriptor;d(Ljava/lang/Class<+Lde/tsl2/nano/core/cls/PackageDescriptor;>;)Ljava/util/Set;>;implLjava/lang/Object;baseTypeloaderLjava/util/ServiceLoader;TT;Ljava/lang/Class;Ljava/util/ServiceLoader;/(Ljava/lang/Class;)V	findClass)(Ljava/lang/Class;)Ljava/util/Collection;base\(Ljava/lang/Class;)Ljava/util/Collection;>;filterresultLjava/util/Map;4Ljava/util/Map;P;>(Ljava/lang/String;)TM;findG(Ljava/lang/String;Ljava/lang/Class;ILjava/lang/Class;)Ljava/util/List;tregex
resultTypemodifier
annotationmapLjava/util/List;5Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;&Ljava/util/Map;Ljava/util/List;?(Ljava/lang/String;Ljava/lang/Class;ILjava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Ljava/util/List;findMethods6(Ljava/lang/String;ILjava/lang/Class;)Ljava/util/List;,Ljava/util/List;v(Ljava/lang/String;ILjava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Ljava/util/List;clsmethodsLjava/lang/Class<*>;?(Ljava/lang/Class<*>;Ljava/lang/String;ILjava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Ljava/util/List;matchDitLjava/util/Iterator;
addMethods	addFields*Ljava/util/Iterator;>;?;>(Ljava/lang/String;Ljava/lang/Class;ILjava/lang/Class<+Ljava/lang/annotation/Annotation;>;)TM;	valueTypeT(Ljava/lang/Class;)Ljava/util/Map;=Ljava/util/Map;?(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Ljava/util/Map;fields[Ljava/lang/reflect/Field;;??(Ljava/lang/Class;Ljava/lang/String;ILjava/lang/Class<+Ljava/lang/annotation/Annotation;>;)Ljava/util/Map;	classPathnameentryLjava/util/jar/JarEntry;isLjava/util/jar/JarInputStream;jarLjava/io/File;fileclasspathEntrypackageNamepathclassPathEntries[Ljava/lang/String;count&Ljava/util/List;>;??[Ljava/io/File;Q(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/List;>;getLoadedClassCountgetLoadedMethodCountresetlambda$fuzzyFindMethods$4.(Ljava/lang/Class;)[Ljava/lang/reflect/Method;
Exceptionslambda$fuzzyFindMethods$3lambda$findMethods$27(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)IcLjava/lang/reflect/Method;dlambda$findMethods$1H(Ljava/util/List;Ljava/lang/String;ILjava/lang/Class;Ljava/lang/Class;)V$lambda$loadAllClassesInEachPackage$0
SourceFileClassFinder.javaNestMembersBootstrapMethods?
???U?$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;?/ClassFinder created for  classes (packages: )?r: cannot access specific private member 'classes' of classloader. this may result in problems on finding classes.?
?????"java/lang/invoke/LambdaMetafactorymetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;L?
?????* Packages will be loaded on classloader ?% classes scanned by ClassFinder on ?
: ?.? filtering  elements with ''...? OK?
????sorting  by name...?'(Ljava/lang/Object;Ljava/lang/Object;)I
???fuzzyfind [, , ]?
???
??loading classes from 
OK (count: )InnerClasses%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookup!CD
#$AB'$ACde"	zD=??
?Y????EJKLF	
D9*????E
P
QGH	DF
*?*+??EVW	XG
H
IJD?u*?Y? ?!*?Y? ?%*?(*?%?-W*+*?%?-YL????1?7?M,?>?AE?G?A*?%?M*?!?M?S?G?AE?G?9<<E6
[\`"a0b3c9f<d=eAhKijjtkG =KLuHuIJF	"H</0Dj*+,?W*+,?[W+?^?Eno
pG HIJ'$M'CANYZD?,,?aY+?cef?h?l?nW?N?A+?r?u?<Ey
zy}{|+~G*OL,H,IJ,'$M,'CF\<PAQRS	/TDQ?x?%*?{?nW?E
??G'UM'VAW?XTD=*???????E
??G'U]0DDx+???
+???????N?AE???A-?+?????AE??,?M6*+,+???
+??????????A,?Md+???G+?^?E"???/?9?A?\?s?G4xHxYJx'$cZ[A7QeMx'CFFB\?A)N\)N?)N\)N\AN]?D??6??6?*?!2?????,*+2??,???nW???ȱE??#?8?>?G>;]e?H?YJ?'$?^_?Z[M?'CF??A`]?D??A????1,????6+,./????:????????:??Y??Y???Էַ?::??Y:?[߶?9??1??-+,.???????W???:		?????-*+,??-???nW?????l?A???D?1??9:?W?A???&?1??:
?A????1?
?*?!,??W-?n???n?????????????Ez????(?2?>?V?Y?d?n?q?y???????????????????????????????Gp?Ka	>~bcVfdeYcfg(?hi?jkHYJlg'$?]eM(?hm'CF[???0????@	??U]?)?N?)?NAn??DY*?%+??nW?E
??GHopMoqAr	
D?>??L?Y? M>+??++2*??:?,??{?nW????,?E"???? ?%?6?<?G4 st.]e>op:Z[2'$M>oq2'CF?\N'?Au??D?4+???M,?N-?#?-?(:*?%?+??W???E??!?0?3?G*!vw4H4xp)yzM !v{4x|)y}F?$?"A~?DT*+?/?3?E?GH?pM?|A??D?.*+?9M,?<? ,?=?C?,?=?F?J??E
??G .H.?g(??M(??F?,4@J1;D?*+J?/?E?GH?gA???DX	v*,?/:?1?<+?L???OY?Q:?3?R:?#?%?(:?S+?V?
?YW??ײ1?\?]?`?E&	???'?H?T?^?a?s?GRH?wvHv?gv?pv?ev?pk??'O??M4H?{v?|v??k??'O??F?54Z$(?A???D?h?1*?%?M+?L??*?b?fY?h:*?%*+-?i?l?1?\?m???n?r?1?\?]?`?E"??#7ISeG4hHh?gh?eh?p#E??Mh??#E??A?01DW???x?
+?~?+??:*Y?b?`?b?OY?Q:6??G?2???1?2???2??,?V?2?YW?????E*
	
%.9
U[jw}GR1L]e?H??p??g??e??pg??.R??M ??????.R??FC???Z?A?12D?
x?1+,?
,???????`*,??:+?*??+*?%??W?*??*?%?[W,?*,??????	*??,?
?,????6	,?
?,????6
,?J,???
	?
??6*?%??:?#???(?J:?s????f????
???L+???+???9??2,?J,???,???,????=??W	?*+????
??]*+??????I?Ev+,"-&.90H1L2Q3a4g8|9?:?>???@?A?B?C?DEF(G.H7IFMKN\PaQuTGz6?????p????xHx?gx?px?ex?p"V??|??_	???_
??/_M*????x?|x??"V??F???JJ8???JJ8???&4
@?
?JJ4@?@?$?'
?JJ4J$@??JJ4J$?
?JJ4J$??JJ4A???Di??Y*??M,?E
X	`G H?p	??M?|	??A???D?
?*???:?x?+????X?c?n??????????????????????????
???#?+?.?K?R?\?l?~???????????????G??$?g?W?g?a??
????n???K>??R=?g#l??X<?g
??g?YJ"??g*'?;n??>k?eM*'?F??>
?)?Z???5????hG?	?)?Z??????B??????K?)?Z????????)?Z???B??A??RD4
*?%?M?E?G
H?RD/*?b?E?GH?
D9*????E
?
?GH
??D/*???EfG?p?<
??D/*?~?EfG?p?<
??D@*??+?Ѷ*?EG??????Dn+*,?.?2W?EG>H???g?e?p?p
??DG?x?%*?3?????7?nW?E?G?p?
D)
?;?A??E
@B?????????????????????????????????????	?
	?
???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy