Examples of EventListenerRegistry


Examples of org.hibernate.service.event.spi.EventListenerRegistry

    } else {
      sessionImpl = (SessionImplementor) session;
    }

    // todo : I wonder if there is a better means to do this via "named lookup" based on the session factory name/uuid
    final EventListenerRegistry listenerRegistry = sessionImpl
        .getFactory()
        .getServiceRegistry()
        .getService( EventListenerRegistry.class );

    for ( PostInsertEventListener listener : listenerRegistry.getEventListenerGroup( EventType.POST_INSERT ).listeners() ) {
      if ( listener instanceof EnversListener ) {
        // todo : slightly different from original code in that I am not checking the other listener groups...
        return new AuditReaderImpl(
            ( (EnversListener) listener ).getAuditConfiguration(),
            session,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.