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)
EventListenerbeforeEntityManagerFactoryCreate in interface EventListenerpublic void afterEntityManagerFactoryCreate(Classification classification, PersistenceUnitMetadata persistenceUnitMetadata)
EventListenerafterEntityManagerFactoryCreate in interface EventListenerpublic Wrapper startCache(Classification classification, Properties properties) throws Exception
EventListenerstartCache in interface EventListenerExceptionpublic void addCacheDependencies(Classification classification, Properties properties)
EventListeneraddCacheDependencies in interface EventListenerpublic void stopCache(Classification classification, Wrapper wrapper, boolean skipStop)
EventListenerstopCache in interface EventListenerskipStop - will be true if the cache shouldn't be stoppedCopyright © 2023 JBoss by Red Hat. All rights reserved.