|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cache.ehcache.management.impl.EhcacheHibernateMBeanRegistrationImpl
public class EhcacheHibernateMBeanRegistrationImpl
Implementation of EhcacheHibernateMBeanRegistration
.
Also implements CacheManagerEventListener
. Deregisters mbeans when the associated cachemanager is shutdown.
Constructor Summary | |
---|---|
EhcacheHibernateMBeanRegistrationImpl()
|
Method Summary | |
---|---|
void |
dispose()
|
void |
enableHibernateStatisticsSupport(SessionFactory sessionFactory)
Enable hibernate statistics in the mbean. |
net.sf.ehcache.Status |
getStatus()
|
void |
init()
No-op in this case |
void |
notifyCacheAdded(String cacheName)
No-op in this case |
void |
notifyCacheRemoved(String cacheName)
No-op in this case |
void |
registerMBeanForCacheManager(net.sf.ehcache.CacheManager manager,
Properties properties)
Registers MBean for the input manager and session factory properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EhcacheHibernateMBeanRegistrationImpl()
Method Detail |
---|
public void registerMBeanForCacheManager(net.sf.ehcache.CacheManager manager, Properties properties) throws Exception
registerMBeanForCacheManager
in interface EhcacheHibernateMBeanRegistration
Exception
public void enableHibernateStatisticsSupport(SessionFactory sessionFactory)
enableHibernateStatisticsSupport
in interface EhcacheHibernateMBeanRegistration
public void dispose() throws net.sf.ehcache.CacheException
dispose
in interface net.sf.ehcache.event.CacheManagerEventListener
net.sf.ehcache.CacheException
public net.sf.ehcache.Status getStatus()
getStatus
in interface net.sf.ehcache.event.CacheManagerEventListener
public void init() throws net.sf.ehcache.CacheException
init
in interface net.sf.ehcache.event.CacheManagerEventListener
net.sf.ehcache.CacheException
public void notifyCacheAdded(String cacheName)
notifyCacheAdded
in interface net.sf.ehcache.event.CacheManagerEventListener
public void notifyCacheRemoved(String cacheName)
notifyCacheRemoved
in interface net.sf.ehcache.event.CacheManagerEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |