ObjectDB ObjectDB

getNewTempClassLoader() - JPA PersistenceUnitInfo's method

Method
javax.persistence.spi.PersistenceUnitInfo
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 PersistenceUnitInfo.getClassLoader. None of the classes loaded by this class loader will be visible to application components. The provider may only use this ClassLoader within the scope of the PersistenceProvider.createContainerEntityManagerFactory call.
Returns:
temporary ClassLoader with same visibility as current loader
Since:
JPA 1.0