Class MCRCentralProcessableRegistry
java.lang.Object
org.mycore.common.processing.impl.MCRCentralProcessableRegistry
- All Implemented Interfaces:
MCRProcessableRegistry
Central base implementation for a processable registry.
- Author:
- Matthias Eichner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(MCRProcessableRegistryListener listener) Adds a new listener.protected void
fireAdded
(MCRProcessableCollection collection) protected void
fireRemoved
(MCRProcessableCollection collection) void
register
(MCRProcessableCollection collection) Registers a new collection to the registry.void
removeListener
(MCRProcessableRegistryListener listener) Removes a listener.stream()
Streams all the collections of this registry.void
unregister
(MCRProcessableCollection collection) Removes a collection from the registry
-
Constructor Details
-
MCRCentralProcessableRegistry
public MCRCentralProcessableRegistry()
-
-
Method Details
-
register
Registers a new collection to the registry.- Specified by:
register
in interfaceMCRProcessableRegistry
- Parameters:
collection
- the collection to register
-
unregister
Removes a collection from the registry- Specified by:
unregister
in interfaceMCRProcessableRegistry
- Parameters:
collection
- the collection to remove
-
stream
Streams all the collections of this registry.- Specified by:
stream
in interfaceMCRProcessableRegistry
- Returns:
- stream of the registry content.
-
addListener
Description copied from interface:MCRProcessableRegistry
Adds a new listener.- Specified by:
addListener
in interfaceMCRProcessableRegistry
- Parameters:
listener
- the listener to add
-
removeListener
Description copied from interface:MCRProcessableRegistry
Removes a listener.- Specified by:
removeListener
in interfaceMCRProcessableRegistry
- Parameters:
listener
- the listener to remove
-
fireAdded
-
fireRemoved
-