public class AuditReaderFactory extends Object
Modifier and Type | Method and Description |
---|---|
static AuditReader |
get(EntityManager entityManager)
Create an audit reader associated with an open entity manager.
|
static AuditReader |
get(Session session)
Create an audit reader associated with an open session.
|
public static AuditReader get(Session session) throws AuditException
session
- An open session.AuditException
- When the given required listeners aren't installed.public static AuditReader get(EntityManager entityManager) throws AuditException
entityManager
- An open entity manager.AuditException
- When the given entity manager is not based on Hibernate, or if the required
listeners aren't installed.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.