Skip to content

Plugin for intercepting Hibernate sessions, events and participate in configuration post processing

License

Notifications You must be signed in to change notification settings

vishwa-vyom/grails-hibernate-hijacker

 
 

Repository files navigation

The Hibernate Hijacker's Guide to the Galaxy

This plugin is a part of the re-engineering efforts going into the Multi-Tenant plugin. It is very difficult to intercept new Hibernate sessions in a non-intrusive way. Multiple plugins trying to archive this are likely to step on each other's feet. This plugin publishes intercepted Session instances to Hawk Eventing, a lightweight event broker, that multiple plugins can subscribe to.

The documentation is now hosted at GitHub Pages.

Current Issues:

  • Other plugins will not be able to set configClass in dataSource block. So grails-hibernate-filter plugin might not work.
  • Not an easy way to create sessionFactory proxy. As GrailsHibernateTemplate constructor uses SessionFactoryImpl which is a final class instead of the interface. Which makes it difficult to pass a proxy object of SessionFactoryImplementor.

About

Plugin for intercepting Hibernate sessions, events and participate in configuration post processing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 62.2%
  • Groovy 37.8%