org.hibernate.boot.spi.ClassLoaderAccess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.boot.spi;
import java.net.URL;
/**
* During the process of building this metamodel, accessing the ClassLoader
* is very discouraged. However, sometimes it is needed. This contract helps
* mitigate accessing the ClassLoader in these cases.
*
* @author Steve Ebersole
*
* @since 5.0
*/
public interface ClassLoaderAccess {
/**
* Obtain a Class reference by name
*
* @param name The name of the Class to get a reference to.
*
* @return The Class.
*/
public Class classForName(String name);
/**
* Locate a resource by name
*
* @param resourceName The name of the resource to resolve.
*
* @return The located resource; may return {@code null} to indicate the resource was not found
*/
public URL locateResource(String resourceName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy