Class orion.serviceregistry.Service
A concrete service in the Orion service registry
Defined in: </shared/eclipse/e4/orion/I201107200200/plugins/org.eclipse.orion.client.core/web/orion/serviceregistry.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.serviceregistry.Service(serviceId, implementation, internalRegistry)
Creates a new service instance.
|
Method Attributes | Method Name and Description |
---|---|
addEventListener(eventName, listener)
Adds a listener to this service for a particular event.
|
|
removeEventListener(eventName, listener)
Stops a listener from listening to a particular event on this service.
|
Class Detail
orion.serviceregistry.Service(serviceId, implementation, internalRegistry)
Creates a new service instance.
- Parameters:
- {String} serviceId
- The symbolic id of this service
- {Object} implementation
- An object implementing the service contract
- {orion.serviceregistry.ServiceRegistry} internalRegistry
- A JSON object containing the service's declarative properties
Method Detail
addEventListener(eventName, listener)
Adds a listener to this service for a particular event.
- Parameters:
- {String} eventName
- The name of the event to listen for
- {Object} listener
- The event listener
removeEventListener(eventName, listener)
Stops a listener from listening to a particular event on this service.
- Parameters:
- {String} eventName
- The name of the event to listen for
- {Object} listener
- The event listener