Class ComponentModelDelegateRegistryImpl
java.lang.Object
com.inductiveautomation.perspective.gateway.model.ComponentModelDelegateRegistryImpl
- All Implemented Interfaces:
ComponentModelDelegateRegistry
public class ComponentModelDelegateRegistryImpl
extends Object
implements ComponentModelDelegateRegistry
Basic
ComponentModelDelegateRegistry implementation, backed by concurrent collection types for safety.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFetch theComponentModelDelegateFactoryregistered with the given typeIdvoidregister(String type, ComponentModelDelegateFactory factory) Register aComponentModelDelegateFactorywith its type IDvoidRemoves the delegate registered with the id from the set of those registered.
-
Constructor Details
-
ComponentModelDelegateRegistryImpl
public ComponentModelDelegateRegistryImpl()
-
-
Method Details
-
register
Description copied from interface:ComponentModelDelegateRegistryRegister aComponentModelDelegateFactorywith its type ID- Specified by:
registerin interfaceComponentModelDelegateRegistry- Parameters:
type- The component type ID associated with the factoryfactory- The factory to register
-
find
Description copied from interface:ComponentModelDelegateRegistryFetch theComponentModelDelegateFactoryregistered with the given typeId- Specified by:
findin interfaceComponentModelDelegateRegistry- Parameters:
typeId- The component type ID- Returns:
- An
Optionalcontaining theComponentModelDelegateFactoryregistered with the given typeId or an empty Optional if no such factory is registered with the given type ID
-
remove
Description copied from interface:ComponentModelDelegateRegistryRemoves the delegate registered with the id from the set of those registered.- Specified by:
removein interfaceComponentModelDelegateRegistry- Parameters:
componentTypeId- the id of the component type whose delegate should be removed from the registry.
-