|
jBPM distribution 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.process.audit.AuditLoggerFactory
public class AuditLoggerFactory
Factory for producing support audit loggers. Currently two types are available:
| Nested Class Summary | |
|---|---|
static class |
AuditLoggerFactory.Type
|
| Constructor Summary | |
|---|---|
AuditLoggerFactory()
|
|
| Method Summary | |
|---|---|
static AbstractAuditLogger |
newInstance(AuditLoggerFactory.Type type,
KieSession ksession,
Map<String,Object> properties)
Creates new instance of audit logger based on given type and parameters and registers it directly in given ksession to receive its events. |
static AbstractAuditLogger |
newJMSInstance(boolean transacted,
ConnectionFactory connFactory,
Queue queue)
Creates new instance of JMS audit logger based on given connection factory and queue. |
static AbstractAuditLogger |
newJMSInstance(Map<String,Object> properties)
Creates new instance of JMS audit logger based on given parameters. |
static AbstractAuditLogger |
newJPAInstance(javax.persistence.EntityManagerFactory emf)
Creates new instance of JPA audit logger with given EntityManagerFactory NOTE: this will build the logger but it is not registered directly on a session son once received needs to be registered as event listener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuditLoggerFactory()
| Method Detail |
|---|
public static AbstractAuditLogger newInstance(AuditLoggerFactory.Type type,
KieSession ksession,
Map<String,Object> properties)
type - - type of the AuditLoger to create (JPA or JMS)ksession - - ksession that the logger will be attached toproperties - - optional properties for the type of logger to initialize it
public static AbstractAuditLogger newJPAInstance(javax.persistence.EntityManagerFactory emf)
emf - EntityManagerFactory used to provide JPA entity manager instances on demand.
public static AbstractAuditLogger newJMSInstance(Map<String,Object> properties)
properties - - optional properties for the type of logger to initialize it
public static AbstractAuditLogger newJMSInstance(boolean transacted,
ConnectionFactory connFactory,
Queue queue)
transacted - determines if JMS session is transacted or notconnFactory - connection factory instancequeue - JMS queue instance
|
jBPM distribution 6.0.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||