Interface ComponentModelDelegateRegistry
- All Known Implementing Classes:
ComponentModelDelegateRegistryImpl
public interface ComponentModelDelegateRegistry
A Registry for
ComponentModelDelegateFactories
-
Method Summary
Modifier and TypeMethodDescriptionFetch theComponentModelDelegateFactory
registered with the given typeIdget
(GatewayContext context) Static accessor for theComponentModelDelegateRegistry
instance contained by the provided contextvoid
register
(String componentTypeId, ComponentModelDelegateFactory factory) Register aComponentModelDelegateFactory
with its type IDvoid
Removes the delegate registered with the id from the set of those registered.
-
Method Details
-
get
Static accessor for theComponentModelDelegateRegistry
instance contained by the provided context- Parameters:
context
- The current runningCommonContext
- Returns:
- The
ComponentModelDelegateRegistry
instance
-
register
Register aComponentModelDelegateFactory
with its type ID- Parameters:
componentTypeId
- The component type ID associated with the factoryfactory
- The factory to register
-
find
Fetch theComponentModelDelegateFactory
registered with the given typeId- Parameters:
typeId
- The component type ID- Returns:
- An
Optional
containing theComponentModelDelegateFactory
registered with the given typeId or an empty Optional if no such factory is registered with the given type ID
-
remove
Removes the delegate registered with the id from the set of those registered.- Parameters:
componentTypeId
- the id of the component type whose delegate should be removed from the registry.
-