FileDocCategorySizeDatePackage
PersistenceUnitLoader.javaAPI DocGlassfish v2 API4996Fri May 04 22:35:42 BST 2007com.sun.enterprise.server

PersistenceUnitLoader

public interface PersistenceUnitLoader
This is used by {@link AbstractLoader} to load persistence units embedded in an ear file. It recurssively loads all the persistence units.
author
Sanjeeb.Sahoo@Sun.COM

Fields Summary
Constructors Summary
Methods Summary
public voidload(com.sun.enterprise.server.PersistenceUnitLoader$ApplicationInfo appInfo)
Load all the persistence units contained inside the application described by ApplicationInfo object. Loading involves calling the {@link javax.persistence.spi.PersistenceProvider} to create an {@link javax.persistence.EntityManagerFactory} and registering the {@link javax.persistence.EntityManagerFactory} at the appropriate level in {@link Application} descriptor object tree.

public voidunload(com.sun.enterprise.server.PersistenceUnitLoader$ApplicationInfo appInfo)
Unload all the persistence units contained inside the application described by ApplicationInfo object. Unloading involves calling {@link javax.persistence.EntityManagerFactory#close()} for each {@link javax.persistence.EntityManagerFactory} in {@link Application} descriptor object tree.