public class CacheDeploymentListener extends Object implements EventListener
Constructor and Description |
---|
CacheDeploymentListener() |
Modifier and Type | Method and Description |
---|---|
void |
addCacheDependencies(Classification classification,
Properties properties)
add dependencies on a cache
|
void |
afterEntityManagerFactoryCreate(Classification classification,
PersistenceUnitMetadata persistenceUnitMetadata)
called after call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)
|
void |
beforeEntityManagerFactoryCreate(Classification classification,
PersistenceUnitMetadata persistenceUnitMetadata)
called before call to PersistenceProvider.createContainerEntityManagerFactory(PersistenceUnit, Map)
|
static void |
clearInternalDeploymentServiceBuilder() |
static org.jboss.msc.service.ServiceBuilder<?> |
getInternalDeploymentServiceBuilder() |
static void |
setInternalDeploymentServiceBuilder(org.jboss.msc.service.ServiceBuilder<?> serviceBuilder) |
Wrapper |
startCache(Classification classification,
Properties properties)
start cache
|
void |
stopCache(Classification classification,
Wrapper wrapper,
boolean skipStop)
Stop cache
|
public static void setInternalDeploymentServiceBuilder(org.jboss.msc.service.ServiceBuilder<?> serviceBuilder)
public static void clearInternalDeploymentServiceBuilder()
public static org.jboss.msc.service.ServiceBuilder<?> getInternalDeploymentServiceBuilder()
public void beforeEntityManagerFactoryCreate(Classification classification, PersistenceUnitMetadata persistenceUnitMetadata)
EventListener
beforeEntityManagerFactoryCreate
in interface EventListener
public void afterEntityManagerFactoryCreate(Classification classification, PersistenceUnitMetadata persistenceUnitMetadata)
EventListener
afterEntityManagerFactoryCreate
in interface EventListener
public Wrapper startCache(Classification classification, Properties properties) throws Exception
EventListener
startCache
in interface EventListener
Exception
public void addCacheDependencies(Classification classification, Properties properties)
EventListener
addCacheDependencies
in interface EventListener
public void stopCache(Classification classification, Wrapper wrapper, boolean skipStop)
EventListener
stopCache
in interface EventListener
skipStop
- will be true if the cache shouldn't be stoppedCopyright © 2016 JBoss by Red Hat. All rights reserved.