# FTServiceLoader

## Abstract

A service loader is used to instantiate and return a service

## Methods

`-serviceAvailability`
`-serviceForGraph:`
`-serviceForNode`
`-serviceForNode:ofGraph:`
`-serviceId`
`-serviceVersion`
`-setEnvironment:`
  called by the service manager directly after this object is being added to it
`-switchToMode:`
  used to switch to a given operation mode
`-version`

### serviceAvailability

>     - (id <FTServiceAvailability>) serviceAvailability

method result
  information about the availability of the service

### serviceForGraph:

>     - (id <FTService>) serviceForGraph: (id <FTGraph>) aGraph;

##### Parameter Descriptions

> `aGraph`
>   graph to load the service for

method result
  loads the service for the specified graph

### serviceForNode

See Also:

> serviceForNode:ofGraph:

>     - (id <FTService>) serviceForNode: (id <FTNode>) aNode ofGraph: (id <FTGraph>) aGraph;

##### Parameter Descriptions

> `aGraph`
>   graph to load the service for

method result
  loads the service for the specified graph

### serviceForNode:ofGraph:

See Also:

> serviceForNode

>     - (id <FTService>) serviceForNode: (id <FTNode>) aNode ofGraph: (id <FTGraph>) aGraph;

##### Parameter Descriptions

> `aGraph`
>   graph to load the service for

### serviceId

>     - (NSString *) serviceId;

method result
  identifier for this services

### serviceVersion

See Also:

> version

>     - (id <FTVersion>) serviceVersion;

### setEnvironment:

called by the service manager directly after this object is being added to it

>     - setEnvironment: (id <FTServiceEnvironment>) aServiceEnvironment;

##### Parameter Descriptions

> `aServiceEnvironment`
>   environment for the serbice

method result
  self

### switchToMode:

used to switch to a given operation mode

>     - switchToMode: (ft_serviceMode_t) aServiceMode;

method result
  self

### version

See Also:

> serviceVersion

>     - (id <FTVersion>) serviceVersion;

method result
  return the version of this service

(Last Updated August 27, 2006)