Top Description Methods
net.sf.ehcache.hibernate.management.impl

public Interface EhcacheHibernateMBeanRegistration

Known Direct Implementers
net.sf.ehcache.hibernate.management.impl.EhcacheHibernateMBeanRegistrationImpl
Imports
java.util.Properties, net.sf.ehcache.CacheManager, org.hibernate.SessionFactory

Interface for helping registering mbeans for ehcache backed hibernate second-level cache

Author
Abhishek Sanoujam

Method Summary

Modifier and TypeMethod and Description
public void
enableHibernateStatisticsSupport(SessionFactory sessionFactory)

Enable hibernate statistics in the mbean.

public void
registerMBeanForCacheManager(CacheManager manager, Properties properties)

Registers MBean for the input manager and session factory properties.

Method Detail

enableHibernateStatisticsSupportback to summary
public void enableHibernateStatisticsSupport(SessionFactory sessionFactory)

Enable hibernate statistics in the mbean.

registerMBeanForCacheManagerback to summary
public void registerMBeanForCacheManager(CacheManager manager, Properties properties) throws Exception

Registers MBean for the input manager and session factory properties.

MBeans will be registered based on the input session factory name. If the input name is null or blank, the name of the cache-manager is used