Class ComponentModelDelegateRegistryImpl
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.model.ComponentModelDelegateRegistryImpl
 
- 
- All Implemented Interfaces:
- ComponentModelDelegateRegistry
 
 public class ComponentModelDelegateRegistryImpl extends java.lang.Object implements ComponentModelDelegateRegistry BasicComponentModelDelegateRegistryimplementation, backed by concurrent collection types for safety.
- 
- 
Constructor SummaryConstructors Constructor Description ComponentModelDelegateRegistryImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<ComponentModelDelegateFactory>find(java.lang.String typeId)Fetch theComponentModelDelegateFactoryregistered with the given typeIdvoidregister(java.lang.String type, ComponentModelDelegateFactory factory)Register aComponentModelDelegateFactorywith its type IDvoidremove(java.lang.String componentTypeId)Removes the delegate registered with the id from the set of those registered.
 
- 
- 
- 
Method Detail- 
registerpublic void register(java.lang.String type, ComponentModelDelegateFactory factory)Description copied from interface:ComponentModelDelegateRegistryRegister aComponentModelDelegateFactorywith its type ID- Specified by:
- registerin interface- ComponentModelDelegateRegistry
- Parameters:
- type- The component type ID associated with the factory
- factory- The factory to register
 
 - 
findpublic java.util.Optional<ComponentModelDelegateFactory> find(@Nonnull java.lang.String typeId) Description copied from interface:ComponentModelDelegateRegistryFetch theComponentModelDelegateFactoryregistered with the given typeId- Specified by:
- findin interface- ComponentModelDelegateRegistry
- 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
 
 - 
removepublic void remove(@Nonnull java.lang.String componentTypeId)Description copied from interface:ComponentModelDelegateRegistryRemoves the delegate registered with the id from the set of those registered.- Specified by:
- removein interface- ComponentModelDelegateRegistry
- Parameters:
- componentTypeId- the id of the component type whose delegate should be removed from the registry.
 
 
- 
 
-