Class InfinispanCacheDeploymentListener
- java.lang.Object
-
- org.jboss.as.jpa.processor.secondlevelcache.InfinispanCacheDeploymentListener
-
- All Implemented Interfaces:
EventListener
public class InfinispanCacheDeploymentListener extends Object implements EventListener
InfinispanCacheDeploymentListener adds Infinispan second level cache dependencies during application deployment.- Author:
- Scott Marlow, Paul Ferraro
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_PRIVATEstatic StringCACHE_TYPEstatic StringCACHESstatic StringCONTAINERstatic StringDEFAULT_CACHE_CONTAINERstatic StringNAMEstatic StringPENDING_PUTS
-
Constructor Summary
Constructors Constructor Description InfinispanCacheDeploymentListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCacheDependencies(Classification classification, Properties properties)voidafterEntityManagerFactoryCreate(Classification classification, PersistenceUnitMetadata persistenceUnitMetadata)voidbeforeEntityManagerFactoryCreate(Classification classification, PersistenceUnitMetadata persistenceUnitMetadata)WrapperstartCache(Classification classification, Properties properties)voidstopCache(Classification classification, Wrapper wrapper)
-
-
-
Field Detail
-
CACHE_TYPE
public static final String CACHE_TYPE
- See Also:
- Constant Field Values
-
CACHE_PRIVATE
public static final String CACHE_PRIVATE
- See Also:
- Constant Field Values
-
CONTAINER
public static final String CONTAINER
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
CACHES
public static final String CACHES
- See Also:
- Constant Field Values
-
PENDING_PUTS
public static final String PENDING_PUTS
- See Also:
- Constant Field Values
-
DEFAULT_CACHE_CONTAINER
public static final String DEFAULT_CACHE_CONTAINER
- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeEntityManagerFactoryCreate
public void beforeEntityManagerFactoryCreate(Classification classification, PersistenceUnitMetadata persistenceUnitMetadata)
- Specified by:
beforeEntityManagerFactoryCreatein interfaceEventListener
-
afterEntityManagerFactoryCreate
public void afterEntityManagerFactoryCreate(Classification classification, PersistenceUnitMetadata persistenceUnitMetadata)
- Specified by:
afterEntityManagerFactoryCreatein interfaceEventListener
-
startCache
public Wrapper startCache(Classification classification, Properties properties) throws Exception
- Specified by:
startCachein interfaceEventListener- Throws:
Exception
-
addCacheDependencies
public void addCacheDependencies(Classification classification, Properties properties)
- Specified by:
addCacheDependenciesin interfaceEventListener
-
stopCache
public void stopCache(Classification classification, Wrapper wrapper)
- Specified by:
stopCachein interfaceEventListener
-
-