ClassLoader getNewTempClassLoader()
Return a new instance of a ClassLoader that the provider may use to temporarily load any classes, resources, or open URLs. The scope and classpath of this loader is exactly the same as that of the loader returned by getClassLoader(). None of the classes loaded by this class loader are visible to application components. The provider may only use this
ClassLoader
within the scope of the createContainerEntityManagerFactory() call. - Return:
- temporary {@code ClassLoader} with same visibility as current loader
- Since:
- JPA 1.0