[External] : Re: ClassHierarchyResolver using Reflection information
Adam Sotona
adam.sotona at oracle.com
Wed Mar 22 18:55:08 UTC 2023
Based on the discussion in this thread I propose to make a first step and adjust ClassHierarchy factory methods following way:
* ofCached(ClassHierarchyResolver resolver)
* ofClassLoading(ClassLoader loader)
* ofResourceParsing(ClassLoader loader)
* ofParsing(Function<ClassDesc, InputStream> classStreamResolver)
* of(MethodHandles.Lookup lookup)
* of(Collection<ClassDesc> interfaces, Map<ClassDesc, ClassDesc> classToSuperClass)
So the default can be defined as:
DEFAULT_CLASS_HIERARCHY_RESOLVER = ofCached(ofResourceParsing(ClassLoader.getSystemClassLoader()).orElse(ofClassLoading(ClassLoader.getSystemClassLoader())));
Please help me to polish exact methods naming.
Thank you,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20230322/3b4378cf/attachment.htm>
More information about the classfile-api-dev
mailing list