org.springframework.orm.jpa.persistenceunit
Class SpringPersistenceUnitInfo
java.lang.Object
org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo
org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo
- All Implemented Interfaces:
- javax.persistence.spi.PersistenceUnitInfo
class SpringPersistenceUnitInfo
- extends MutablePersistenceUnitInfo
Subclass of MutablePersistenceUnitInfo that adds instrumentation
hooks based on Spring's LoadTimeWeaver abstraction.
This class is restricted to package visibility, in contrast
to its superclass.
- Since:
- 2.0
- Author:
- Rod Johnson, Juergen Hoeller, Costin Leau
- See Also:
setLoadTimeWeaver(org.springframework.instrument.classloading.LoadTimeWeaver)
,
PersistenceUnitManager
Methods inherited from class org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo |
addJarFileUrl, addManagedClassName, addMappingFileName, addProperty, excludeUnlistedClasses, getJarFileUrls, getJtaDataSource, getManagedClassNames, getMappingFileNames, getNonJtaDataSource, getPersistenceProviderClassName, getPersistenceUnitName, getPersistenceUnitRootUrl, getProperties, getTransactionType, setExcludeUnlistedClasses, setJtaDataSource, setNonJtaDataSource, setPersistenceProviderClassName, setPersistenceUnitName, setPersistenceUnitRootUrl, setProperties, setTransactionType, toString |
SpringPersistenceUnitInfo
SpringPersistenceUnitInfo()
setLoadTimeWeaver
public void setLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver)
- Set the LoadTimeWeaver SPI strategy interface used by Spring
to add instrumentation to the current class loader.
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface javax.persistence.spi.PersistenceUnitInfo
- Overrides:
getClassLoader
in class MutablePersistenceUnitInfo
addTransformer
public void addTransformer(javax.persistence.spi.ClassTransformer classTransformer)
- Method called by PersistenceProvider to add instrumentation to
the current environment.
- Specified by:
addTransformer
in interface javax.persistence.spi.PersistenceUnitInfo
- Overrides:
addTransformer
in class MutablePersistenceUnitInfo
getNewTempClassLoader
public ClassLoader getNewTempClassLoader()
- Specified by:
getNewTempClassLoader
in interface javax.persistence.spi.PersistenceUnitInfo
- Overrides:
getNewTempClassLoader
in class MutablePersistenceUnitInfo
Copyright © 2002-2006 The Spring Framework.