Class Notification


  • public class Notification
    extends Object
    Event Notification
    Author:
    Scott Marlow
    • Constructor Detail

      • Notification

        public Notification()
    • Method Detail

      • remove

        public static void remove​(EventListener eventListener)
      • beforeEntityManagerFactoryCreate

        public static void beforeEntityManagerFactoryCreate​(Classification cacheType,
                                                            PersistenceUnitMetadata persistenceUnitMetadata)
        called before call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)
        Parameters:
        persistenceUnitMetadata -
      • afterEntityManagerFactoryCreate

        public static void afterEntityManagerFactoryCreate​(Classification cacheType,
                                                           PersistenceUnitMetadata persistenceUnitMetadata)
        called after call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)
        Parameters:
        persistenceUnitMetadata -
      • startCache

        public static 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

        public static void addCacheDependencies​(Classification cacheType,
                                                Properties properties)
        add cache dependencies
        Parameters:
        properties -
      • stopCache

        public static void stopCache​(Classification cacheType,
                                     Wrapper wrapper)
        Stop cache
        Parameters:
        cacheType -
        wrapper -