Package io.quarkus.commons.classloading
Class ClassLoaderHelper
java.lang.Object
io.quarkus.commons.classloading.ClassLoaderHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfromClassNameToResourceName(String className) Helper method to convert a classname into its typical resource name: replace all "." with "/" and append the ".class" postfix.static StringfromResourceNameToClassName(String resourceName) Helper method to convert a resource name into the corresponding class name: replace all "/" with "." and remove the ".class" postfix.static booleanisClassEntry(String resourceName) Returnstrueif the resource name represents a regular class file, excludingmodule-info.classandpackage-info.class.static booleanisInJdkPackage(String name)
-
Method Details
-
fromClassNameToResourceName
Helper method to convert a classname into its typical resource name: replace all "." with "/" and append the ".class" postfix.- Parameters:
className-- Returns:
- the name of the respective resource
-
fromResourceNameToClassName
Helper method to convert a resource name into the corresponding class name: replace all "/" with "." and remove the ".class" postfix.- Parameters:
resourceName-- Returns:
- the name of the respective class
-
isInJdkPackage
-
isClassEntry
Returnstrueif the resource name represents a regular class file, excludingmodule-info.classandpackage-info.class.- Parameters:
resourceName- the JAR entry path, e.g.com/example/Foo.class
-