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

io.quarkus.commons.classloading.ClassloadHelper Maven / Gradle / Ivy

package io.quarkus.commons.classloading;

public final class ClassloadHelper {

    private ClassloadHelper() {
        //Not meant to be instantiated
    }

    /**
     * Helper method to convert a classname into its typical resource name:
     * replace all "." with "/" and append the ".class" postfix.
     *
     * @param className
     * @return the name of the respective resource
     */
    public static String fromClassNameToResourceName(final String className) {
        //Important: avoid indy!
        return className.replace('.', '/').concat(".class");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy