Class orion.serviceregistry.ServiceRegistry
				
				
			
				The Orion service registry
				
				
					
Defined in:  </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.core/web/orion/serviceregistry.js>.
				
			
| Constructor Attributes | Constructor Name and Description | 
|---|---|
| Creates a new service registry | 
| Method Attributes | Method Name and Description | 
|---|---|
| addEventListener(eventName, listener)
								 Adds a listener for events on this registry. | |
| getService(nameOrServiceReference)
								 Returns the service with the given name or reference. | |
| getServiceReferences(name)
								 Returns all references to the service with the given name. | |
| registerService(names, service, properties)
								 Registers a service with this registry. | |
| removeEventListener(eventName, listener)
								 Removes a listener for service events in this registry. | 
					Method Detail
				
				
					 
					
					
					
					addEventListener(eventName, listener)
					
					
					
						Adds a listener for events on this registry.
The events that this registry notifies about:
					
					
					
						
							The events that this registry notifies about:
- modified - the service has been modified
- registered - the service has been registered
- unregistering - the service is unregistering
- Parameters:
- {String} eventName
- The name of the event to be notified about.
- {Function} listener
- The listener to add
					
					{orion.serviceregistry.ServiceReference|null}
					getService(nameOrServiceReference)
					
					
					
						Returns the service with the given name or reference.
						
						
					
					
					
					
						
							- Parameters:
- {String|orion.serviceregistry.ServiceReference} nameOrServiceReference
- The service name or a service reference
- Returns:
- {orion.serviceregistry.ServiceReference|null} The service implementation, or nullif no such service was found.
					
					{orion.serviceregistry.ServiceReference[]}
					getServiceReferences(name)
					
					
					
						Returns all references to the service with the given name.
						
						
					
					
					
					
						
							- Parameters:
- {String} name
- The name of the service to return
- Returns:
- {orion.serviceregistry.ServiceReference[]} An array of service references
					
					{orion.serviceregistry.ServiceRegistration}
					registerService(names, service, properties)
					
					
					
						Registers a service with this registry. This function will notify clients registered
for 
					
					
					
						
							registered service events.
						
						
					- Parameters:
- {String|String[]} names
- the name or names of the service being registered
- {Object} service
- The service implementation
- {Object} properties
- A JSON collection of declarative service properties
- Returns:
- {orion.serviceregistry.ServiceRegistration} A service registration object for the service.
					
					
					removeEventListener(eventName, listener)
					
					
					
						Removes a listener for service events in this registry.
						
						
					
					
					
					
						
							- Parameters:
- {String} eventName
- The name of the event to stop listening for
- {Function} listener
- The listener to remove