Class OSGiEventSourceRegistry
- java.lang.Object
-
- org.opendaylight.controller.messagebus.app.impl.OSGiEventSourceRegistry
-
- All Implemented Interfaces:
AutoCloseable,EventSourceRegistry
@Beta public final class OSGiEventSourceRegistry extends Object implements EventSourceRegistry
-
-
Constructor Summary
Constructors Constructor Description OSGiEventSourceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T extends EventSource>
EventSourceRegistration<T>registerEventSource(T eventSource)Registers the given EventSource for public consumption.
-
-
-
Method Detail
-
registerEventSource
public <T extends EventSource> EventSourceRegistration<T> registerEventSource(T eventSource)
Description copied from interface:EventSourceRegistryRegisters the given EventSource for public consumption. The EventSource is associated with the node identified viaEventSource.getSourceNodeKey().- Specified by:
registerEventSourcein interfaceEventSourceRegistry- Parameters:
eventSource- the EventSource instance to register- Returns:
- an EventSourceRegistration instance that is used to unregister the EventSource
via
EventSourceRegistration.close().
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-