Approprate naming for service protocol

Minor code cleanup
This commit is contained in:
michael starke
2013-10-20 19:38:57 +02:00
parent 5d90b23569
commit 09263b4559
12 changed files with 438 additions and 389 deletions

View File

@@ -7,12 +7,10 @@
//
#import "MPRequestHandlerService.h"
#import "MPServerRequestHandler.h"
#import "MPServerRequestHandling.h"
#import "MPAssociateRequestHandler.h"
#import "MPTestAssociateRequestHandler.h"
//NSString *const MPRequestTypeAssociate = @"associate";
//NSString *const MPRequestTypeTestAssociate = @"test-associate";
NSString *const MPRequestTypeGetLogins = @"get-logins";
NSString *const MPRequestTypeGetLoginsCount = @"get-logins-count";
NSString *const MPRequestTypeGetAllLogins = @"get-all-logins";
@@ -21,11 +19,11 @@ NSString *const MPRequestTypeGeneratePassword = @"generate-password";
@implementation MPRequestHandlerService
+ (id<MPServerRequestHandler>)requestHandler:(NSString *)identifier {
return [self requestHander][identifier];
+ (id<MPServerRequestHandling>)requestHandler:(NSString *)identifier {
return [self requestHandler][identifier];
}
+ (NSDictionary *)requestHander {
+ (NSDictionary *)requestHandler {
static NSDictionary *requestHandler;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{