public interface ChangeSetContextAccessor
ChangeSetContext
objects. It's preferred to use it via ChangeSetContext.getCurrent()
.
The implementation of the factory is loaded via Java's ServiceLoader
and is therefore pluggable.Modifier and Type | Field and Description |
---|---|
static ChangeSetContextAccessor |
INSTANCE
The instance loaded via Java's
ServiceLoader , used by ChangeSetContext.getCurrent() |
Modifier and Type | Method and Description |
---|---|
ChangeSetContext |
getCurrent()
Gives access to the currently active
ChangeSetContext . |
boolean |
isActive() |
ChangeSetContextSPI |
open()
Creates a new
ChangeSetContextSPI instance. |
static final ChangeSetContextAccessor INSTANCE
ServiceLoader
, used by ChangeSetContext.getCurrent()
boolean isActive()
ChangeSetContext
is currently activeChangeSetContext getCurrent()
ChangeSetContext
.
If no ChangeSetContext
is currently opened this method will return null
ChangeSetContext
or null
.ChangeSetContextSPI open()
ChangeSetContextSPI
instance. The caller of this method is responsible for ensuring the context is closed.
Consider using CdsRuntime.changeSetContext()
instead if possible, as it automatically ensures to close the context.ChangeSetContextSPI
instance.CdsRuntime.changeSetContext()
Copyright © 2021. All rights reserved.