Class: OpenHAB::Core::Registry Abstract
- Inherits:
 - 
      Object
      
        
- Object
 - OpenHAB::Core::Registry
 
 
- Defined in:
 - lib/openhab/core/registry.rb
 
Overview
  This class is abstract.
  
The base class for all registries in openHAB.
Instance Attribute Summary collapse
Instance Method Summary collapse
- 
  
    
      #provider_for(key)  ⇒ org.openhab.core.common.registry.Provider 
    
    
  
  
  
  
  
  
  
  
  
    
Determines which provider an element is associated with.
 
Instance Attribute Details
#providers ⇒ Enumerable<org.openhab.core.common.registry.Provider> (readonly)
      30 31 32  | 
    
      # File 'lib/openhab/core/registry.rb', line 30 def providers providerToElements.keys end  | 
  
Instance Method Details
#provider_for(key) ⇒ org.openhab.core.common.registry.Provider
Determines which provider an element is associated with.
      20 21 22 23 24 25 26  | 
    
      # File 'lib/openhab/core/registry.rb', line 20 def provider_for(key) elementReadLock.lock element = key.is_a?(org.openhab.core.common.registry.Identifiable) ? key : identifierToElement[key] elementToProvider[element] if element ensure elementReadLock.unlock end  |