mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-13 09:30:46 +08:00
* Removed RestKit from inheritance hierarchy * Mappings are implemented as concrete classes * Mapper is much more flexible & powerful * Much more robust error handling * Serialization is reimplemented as an object mapping operation * Added ability to serialize to JSON natively * Reworked Core Data integration * Simplified the codebase substantially
24 lines
570 B
Objective-C
24 lines
570 B
Objective-C
//
|
|
// RKObjectFactory.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 5/10/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "RKObjectMapping.h"
|
|
|
|
/**
|
|
Defines a protocol for the creation of objects during an
|
|
object mapping operation. Used to initialize objects that
|
|
are going to be subsequently mapped with an object mapping
|
|
*/
|
|
@protocol RKObjectFactory <NSObject>
|
|
|
|
/**
|
|
Return a new initialized, auto-released object with the specified object mapping.
|
|
*/
|
|
- (id)objectWithMapping:(RKObjectMapping*)objectMapping andData:(id)mappableData;
|
|
|
|
@end
|