Class NotifyingItemFactory
- java.lang.Object
-
- io.annot8.implementations.support.stores.NotifyingItemFactory
-
- All Implemented Interfaces:
io.annot8.api.data.ItemFactory,Listenable<Consumer<io.annot8.api.data.Item>>
- Direct Known Subclasses:
QueueItemFactory
public class NotifyingItemFactory extends Object implements io.annot8.api.data.ItemFactory, Listenable<Consumer<io.annot8.api.data.Item>>
-
-
Constructor Summary
Constructors Constructor Description NotifyingItemFactory(io.annot8.api.data.ItemFactory itemFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.annot8.api.data.Itemcreate()io.annot8.api.data.Itemcreate(io.annot8.api.data.Item parent)voidderegister(Consumer<io.annot8.api.data.Item> consumer)Deregisterregister(Consumer<io.annot8.api.data.Item> consumer)
-
-
-
Method Detail
-
register
public Deregister register(Consumer<io.annot8.api.data.Item> consumer)
- Specified by:
registerin interfaceListenable<Consumer<io.annot8.api.data.Item>>
-
deregister
public void deregister(Consumer<io.annot8.api.data.Item> consumer)
- Specified by:
deregisterin interfaceListenable<Consumer<io.annot8.api.data.Item>>
-
create
public io.annot8.api.data.Item create()
- Specified by:
createin interfaceio.annot8.api.data.ItemFactory
-
create
public io.annot8.api.data.Item create(io.annot8.api.data.Item parent)
- Specified by:
createin interfaceio.annot8.api.data.ItemFactory
-
-