public class ClassLoaderAccessImpl extends Object implements ClassLoaderAccess
Constructor and Description |
---|
ClassLoaderAccessImpl(ClassLoader jpaTempClassLoader,
ClassLoaderService classLoaderService) |
ClassLoaderAccessImpl(ClassLoaderService classLoaderService) |
ClassLoaderAccessImpl(ClassLoader tempClassLoader,
ServiceRegistry serviceRegistry) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
classForName(String name)
Obtain a Class reference by name
|
ClassLoader |
getJpaTempClassLoader() |
void |
injectTempClassLoader(ClassLoader jpaTempClassLoader) |
URL |
locateResource(String resourceName)
Locate a resource by name
|
void |
release() |
public ClassLoaderAccessImpl(ClassLoader jpaTempClassLoader, ClassLoaderService classLoaderService)
public ClassLoaderAccessImpl(ClassLoader tempClassLoader, ServiceRegistry serviceRegistry)
public ClassLoaderAccessImpl(ClassLoaderService classLoaderService)
public void injectTempClassLoader(ClassLoader jpaTempClassLoader)
public Class<?> classForName(String name)
ClassLoaderAccess
classForName
in interface ClassLoaderAccess
name
- The name of the Class to get a reference to.public ClassLoader getJpaTempClassLoader()
public URL locateResource(String resourceName)
ClassLoaderAccess
locateResource
in interface ClassLoaderAccess
resourceName
- The name of the resource to resolve.null
to indicate the resource was not foundpublic void release()
Copyright © 2020 JBoss by Red Hat. All rights reserved.