TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Your Name.
Command are used to remove all of the business logic that goes inside ViewController to their respective commands and handlers.
The preferred method of installation is with CocoaPods. Add this line to the podfile
pod 'RBCommander', '~>0.1.2'
If you want to install manually, copy the RBCommander folder to the project director.
A command is a DTO that carries the data needed to perform a specific business logic.
The command handler uses the Command DTO object and performs a set of operations over or along the object. The CommandHandler conforms to RBHandlerProtocol
The command bus uses the command translator to map a specific command to its handler class, and executes commands that are issues to it.
By default, the command bus will do a quick search and replace on the name of the command class to figure out which handler class to use for example
LoginCommand => LoginCommandHandler
The demo project gives a overall insight on how to uses the commander pattern.
RBCommander is available under The MIT License (MIT)
Copyright (c) 2014 Roshan Balaji
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.