Interface EventListener


public interface EventListener
lifecycle EventListener
Author:
Scott Marlow
  • 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

      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 -