Class DesignerEventStreamRegistry<T extends EventStreamDesignDelegate<E>,U extends EventStreamDesignDelegateInfo<E>,E extends EventStreamEditor>
java.lang.Object
com.inductiveautomation.eventstream.designer.api.DesignerEventStreamRegistry<T,U,E>
- Direct Known Subclasses:
HandlerRegistry
,SourceRegistry
public abstract class DesignerEventStreamRegistry<T extends EventStreamDesignDelegate<E>,U extends EventStreamDesignDelegateInfo<E>,E extends EventStreamEditor>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the delegate associated with the given type.getAll()
Returns all delegates.void
protected void
setMappingFunction
(Function<T, U> function) void
unregister
(String type) Removed a registeredEventStreamDesignDelegate
.void
-
Constructor Details
-
DesignerEventStreamRegistry
public DesignerEventStreamRegistry()
-
-
Method Details
-
setMappingFunction
-
register
RegisterEventStreamDesignDelegate
byEventStreamDesignDelegate.getType()
. Will throw an exception if theEventStreamDesignDelegate.getType()
has already been registered.- Parameters:
delegate
- DesignDelegate to register
-
unregister
Removed a registeredEventStreamDesignDelegate
.- Parameters:
type
- Type string that is associated with the delegate to be removed.
-
unregisterAll
public void unregisterAll() -
get
Returns the delegate associated with the given type.- Parameters:
type
- Key associated with the delegate- Returns:
- Delegate registered for the given type key or null if no delegate has been registered with the provided key
-
getAll
Returns all delegates.
-