public class AuditLoggerFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AuditLoggerFactory.Type |
Constructor and Description |
---|
AuditLoggerFactory() |
Modifier and Type | Method and Description |
---|---|
static AbstractAuditLogger |
newInstance(AuditLoggerFactory.Type type,
org.kie.api.runtime.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,
javax.jms.ConnectionFactory connFactory,
javax.jms.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(org.kie.api.runtime.Environment env)
Creates new instance of JPA audit logger with given Environment
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
|
public static AbstractAuditLogger newInstance(AuditLoggerFactory.Type type, org.kie.api.runtime.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 itpublic static AbstractAuditLogger newJPAInstance()
public static AbstractAuditLogger newJPAInstance(org.kie.api.runtime.Environment env)
env
- Environment instance to be usedpublic static AbstractAuditLogger newJMSInstance(Map<String,Object> properties)
properties
- - optional properties for the type of logger to initialize itpublic static AbstractAuditLogger newJMSInstance(boolean transacted, javax.jms.ConnectionFactory connFactory, javax.jms.Queue queue)
transacted
- determines if JMS session is transacted or notconnFactory
- connection factory instancequeue
- JMS queue instanceCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.