Inherits from NSObject
Declared in STWServiceRepository.h
STWServiceRepository.m

Overview

STWServiceRepository is the repository class of STWService.

Instance Methods

getService:

Get the service by its name.

- (id<STWService>)getService:(NSString *)serviceName

Parameters

serviceName

the service name

Return Value

the service of the specified name or nil if not exists

Discussion

Get the service by its name.

Declared In

STWServiceRepository.h

registerService:

Register a service to the repository.

- (void)registerService:(id<STWService>)service

Parameters

service

the service to register

Discussion

Register a service to the repository.

Declared In

STWServiceRepository.h