Package org.jipijapa.event.spi
Interface EventListener
-
public interface EventListenerlifecycle EventListener- Author:
- Scott Marlow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCacheDependencies(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)WrapperstartCache(Classification cacheType, Properties properties)start cachevoidstopCache(Classification cacheType, Wrapper wrapper)Stop cache
-
-
-
Method Detail
-
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
Wrapper startCache(Classification cacheType, Properties properties) throws Exception
start cache- Parameters:
cacheType-properties-- Returns:
- an opaque cache wrapper that is later passed to stopCache
- Throws:
Exception
-
addCacheDependencies
void addCacheDependencies(Classification cacheType, Properties properties)
add dependencies on a cache- Parameters:
cacheType-properties-
-
stopCache
void stopCache(Classification cacheType, Wrapper wrapper)
Stop cache- Parameters:
cacheType-wrapper-
-
-