jBPM distribution 6.2.0.CR4

org.jbpm.process.audit
Class AuditLoggerFactory

java.lang.Object
  extended by org.jbpm.process.audit.AuditLoggerFactory

public class AuditLoggerFactory
extends Object

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()
          Creates new instance of JPA audit logger NOTE: this will build the logger but it is not registered directly on a session: once received, it will need to be registered as an event listener
static AbstractAuditLogger newJPAInstance(Environment env)
          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: once received, it will need to be registered as an event listener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuditLoggerFactory

public AuditLoggerFactory()
Method Detail

newInstance

public 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. Depending on the types several properties are supported: JPA No properties are supported JMS

Parameters:
type - - type of the AuditLoger to create (JPA or JMS)
ksession - - ksession that the logger will be attached to
properties - - optional properties for the type of logger to initialize it
Returns:
new instance of AbstractAuditLogger

newJPAInstance

public static AbstractAuditLogger newJPAInstance()
Creates new instance of JPA audit logger NOTE: this will build the logger but it is not registered directly on a session: once received, it will need to be registered as an event listener

Returns:
new instance of JPA audit logger

newJPAInstance

public static AbstractAuditLogger newJPAInstance(Environment env)
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: once received, it will need to be registered as an event listener

Parameters:
emf - EntityManagerFactory used to provide JPA entity manager instances on demand.
env - Environment instance to be used
Returns:
new instance of JPA audit logger

newJMSInstance

public static AbstractAuditLogger newJMSInstance(Map<String,Object> properties)
Creates new instance of JMS audit logger based on given parameters. Supported parameters are as follows: NOTE: this will build the logger but it is not registered directly on a session: once received, it will need to be registered as an event listener

Parameters:
properties - - optional properties for the type of logger to initialize it
Returns:
new instance of JMS audit logger

newJMSInstance

public static AbstractAuditLogger newJMSInstance(boolean transacted,
                                                 ConnectionFactory connFactory,
                                                 Queue queue)
Creates new instance of JMS audit logger based on given connection factory and queue. NOTE: this will build the logger but it is not registered directly on a session: once received, it will need to be registered as an event listener

Parameters:
transacted - determines if JMS session is transacted or not
connFactory - connection factory instance
queue - JMS queue instance
Returns:
new instance of JMS audit logger

jBPM distribution 6.2.0.CR4

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.