public interface EventContextFactory
EventContext
objects. It's preferred to use it via EventContext.create(String, String)
.
The implementation of the factory is loaded via Java's ServiceLoader
and is therefore pluggable.Modifier and Type | Field and Description |
---|---|
static EventContextFactory |
INSTANCE
The instance loaded via Java's
ServiceLoader , used by EventContext.create(String, String) |
Modifier and Type | Method and Description |
---|---|
EventContext |
create(String event,
String entityName)
The factory method to create a new
EventContext |
static final EventContextFactory INSTANCE
ServiceLoader
, used by EventContext.create(String, String)
EventContext create(String event, String entityName)
EventContext
event
- the name of the evententityName
- the name of the entityEventContext
Copyright © 2020. All rights reserved.