Package io.permazen.core
Class Transaction.ListenerSet
java.lang.Object
io.permazen.core.Transaction.ListenerSet
- Enclosing class:
- Transaction
A fixed collection of listeners (
CreateListener
s, DeleteListener
s, SchemaChangeListener
s,
SimpleFieldChangeListener
s, SetFieldChangeListener
s, ListFieldChangeListener
s, and
MapFieldChangeListener
s) that can be efficiently registered on a Transaction
all at once.
To create an instance of this class, use Transaction.snapshotListeners()
after registering the desired
set of listeners. Once created, the instance can be used repeatedly to configure the same set of listeners
on any other compatible Transaction
via Transaction.setListeners()
,
where "compatible" means having the same SchemaBundle
.
-
Method Summary