The Spring Framework

org.springframework.orm.jpa.persistenceunit
Class SpringPersistenceUnitInfo

java.lang.Object
  extended by org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo
      extended by 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

Constructor Summary
SpringPersistenceUnitInfo()
           
 
Method Summary
 void addTransformer(javax.persistence.spi.ClassTransformer classTransformer)
          Method called by PersistenceProvider to add instrumentation to the current environment.
 ClassLoader getClassLoader()
           
 ClassLoader getNewTempClassLoader()
           
 void setLoadTimeWeaver(LoadTimeWeaver loadTimeWeaver)
          Set the LoadTimeWeaver SPI strategy interface used by Spring to add instrumentation to the current class loader.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpringPersistenceUnitInfo

SpringPersistenceUnitInfo()
Method Detail

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

The Spring Framework

Copyright © 2002-2006 The Spring Framework.