Package org.jipijapa.event.spi
Interface EventListener
public interface EventListener
lifecycle EventListener
- Author:
- Scott Marlow
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCacheDependencies(Classification cacheType, Properties properties) add dependencies on a cachevoidafterEntityManagerFactoryCreate(Classification cacheType, PersistenceUnitMetadata persistenceUnitMetadata) called after call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)voidbeforeEntityManagerFactoryCreate(Classification cacheType, PersistenceUnitMetadata persistenceUnitMetadata) called before call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)startCache(Classification cacheType, Properties properties) start cachevoidstopCache(Classification cacheType, Wrapper wrapper) Stop cache
-
Method Details
-
beforeEntityManagerFactoryCreate
void beforeEntityManagerFactoryCreate(Classification cacheType, PersistenceUnitMetadata persistenceUnitMetadata) called before call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)- Parameters:
cacheType-persistenceUnitMetadata-
-
afterEntityManagerFactoryCreate
void afterEntityManagerFactoryCreate(Classification cacheType, PersistenceUnitMetadata persistenceUnitMetadata) called after call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)- Parameters:
persistenceUnitMetadata-
-
startCache
start cache- Parameters:
cacheType-properties-- Returns:
- an opaque cache wrapper that is later passed to stopCache
- Throws:
Exception
-
addCacheDependencies
add dependencies on a cache- Parameters:
cacheType-properties-
-
stopCache
Stop cache- Parameters:
cacheType-wrapper-
-