Package org.mycore.common.processing
Interface MCRProcessableRegistry
- All Known Implementing Classes:
MCRCentralProcessableRegistry
public interface MCRProcessableRegistry
Registry for
MCRProcessable
and MCRProcessableCollection
.
Can be used for managing and monitoring purposes.- Author:
- Matthias Eichner
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(MCRProcessableRegistryListener listener) Adds a new listener.static MCRProcessableRegistry
Return the default instance of the processable registryvoid
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
-
Method Details
-
getSingleInstance
Return the default instance of the processable registry- Returns:
- the singleton instance
-
register
Registers a new collection to the registry.- Parameters:
collection
- the collection to register
-
unregister
Removes a collection from the registry- Parameters:
collection
- the collection to remove
-
stream
Stream<MCRProcessableCollection> stream()Streams all the collections of this registry.- Returns:
- stream of the registry content.
-
addListener
Adds a new listener.- Parameters:
listener
- the listener to add
-
removeListener
Removes a listener.- Parameters:
listener
- the listener to remove
-