MutablePersistenceUnitInfo that adds instrumentation hooks based on
Spring's org.springframework.instrument.classloading.LoadTimeWeaver abstraction.
This class is restricted to package visibility, in contrast to its superclass.
PersistenceUnitManager
| Modifier and Type | Field and Description |
|---|---|
| private ClassLoader | |
| private LoadTimeWeaver |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTransformer(ClassTransformer
provider-supplied transformer that the
container invokes at class-(re)definition time classTransformer)Overrides org. Implements jakarta. |
| public ClassLoader | getClassLoader()
Overrides org. Implements jakarta. |
| public ClassLoader | getNewTempClassLoader()
Overrides org. Implements jakarta. |
| public void | init(LoadTimeWeaver loadTimeWeaver)
Initialize this PersistenceUnitInfo with the LoadTimeWeaver SPI interface used by Spring to add instrumentation to the current class loader. |
| public void | init(ClassLoader classLoader)
Initialize this PersistenceUnitInfo with the current class loader (instead of with a LoadTimeWeaver). |
| classLoader | back to summary |
|---|---|
| private ClassLoader classLoader
| |
| loadTimeWeaver | back to summary |
|---|---|
| private LoadTimeWeaver loadTimeWeaver
| |
| SpringPersistenceUnitInfo | back to summary |
|---|---|
| pack-priv SpringPersistenceUnitInfo() | |
| addTransformer | back to summary |
|---|---|
| public void addTransformer(ClassTransformer classTransformer) Overrides org. Implements jakarta. This implementation delegates to the LoadTimeWeaver, if specified.
| |
| getClassLoader | back to summary |
|---|---|
| public ClassLoader getClassLoader() Overrides org. Implements jakarta. This implementation returns the LoadTimeWeaver's instrumentable ClassLoader, if specified.
| |
| getNewTempClassLoader | back to summary |
|---|---|
| public ClassLoader getNewTempClassLoader() Overrides org. Implements jakarta. This implementation delegates to the LoadTimeWeaver, if specified.
| |
| init | back to summary |
|---|---|
| public void init(LoadTimeWeaver loadTimeWeaver) Initialize this PersistenceUnitInfo with the LoadTimeWeaver SPI interface used by Spring to add instrumentation to the current class loader. | |
| init | back to summary |
|---|---|
| public void init(ClassLoader classLoader) Initialize this PersistenceUnitInfo with the current class loader (instead of with a LoadTimeWeaver). | |