Latest | 1.0.0 |
---|---|
Homepage | https://github.com/wangjufan/dispatcher |
License | MIT |
Platforms | ios 8.0 |
Authors |
dispatcher
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
interfaces:
FProtocolManager , FProtocolService and FProtocolURL are protocols that you should implementation in your modules .
For FProtocolManager, you should implementation + (void)ioc_registService to registe you service to dispatcher . For example:
- (void)ioc_registService {
NSDictionary * services = [FRegistManager readServices:@"FAlertConfig"];
[[FRegistManager sharedInstance] registServices:services];
}
For FProtocolService, the -(void) execute: method should be implementation in your modules .
For FProtocolURL, you should implementation you implemenation in you modules just return a url for some FProtocolService in the modules. For example:
+(id
NSString url = @"vkt://alert/loading";
id
task.paras = @{@"information":informaton};
return task;
}
public:
FDispatcher , FProtocolTask and FRegistManager are public , use them but implemenation them yourself.
private:
FServiceDescription and FServiceTask are pirvate .
Installation
dispatcher is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'Rdispatcher'
Author
License
dispatcher is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "Rdispatcher", "version": "1.0.0", "summary": "u7ec4u4ef6u670du52a1u7ba1u7406u3001u62e6u622au8bbeu8ba1u8303u5f0fu3001AOPu7edfu8ba1u67b6u6784", "description": "u7ec4u4ef6u670du52a1u7ba1u7406uff1au5404u4e2au7ec4u4ef6u63d0u4f9bu670du52a1u6ce8u518cu80fdu529b;routeu67e5u627eu4e0eu5206u53d1u80fdu529b;u8defu7531u91cdu5b9au5411u80fdu529bu3002nu62e6u622au8bbeu8ba1u8303u5f0fuff1au5728u7ec4u4ef6u91cdu7528u7684u57fau7840u4e0auff0cu8fdbu4e00u6b65u5b9eu73b0u8c03u7528u903bu8f91u7684u91cdu7528u5373u6d41u7a0bu7684u6253u7834u4e0eu91cdu7528u3002nAOPu7edfu8ba1u67b6u6784uff1au5728u7ecfu5178u7684AOPu7edfu8ba1u6a21u5f0fu7684u57fau7840u4e0au4f5cu51fau4e86u5faeu8c03-u501fu52a9u4e8eu9762u5411u5bf9u8c61u7684u7279u6027uff0cu5728u57fau7c7bu4e2du5b9eu73b0u7a7au5b9eu73b0u7684u7edfu8ba1u65b9u6cd5uff0cu4ee5u6b64u4e3aweaveu70b9u3002", "homepage": "https://github.com/wangjufan/dispatcher", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "[email protected]": "[email protected]" }, "source": { "git": "https://github.com/wangjufan/dispatcher.git", "tag": "1.0.0" }, "platforms": { "ios": "8.0" }, "source_files": "dispatcher/Classes/*/**/*" }
Thu, 25 Jan 2018 00:20:04 +0000