Suggest:the suffix for classes name

Posted on 2015-04-22 14:03  木月天空  阅读(154)  评论(0编辑  收藏  举报

摘自:http://vunvulearadu.blogspot.jp/2012/08/how-to-you-name-your-classes-how-many.html

XXXFactory - Create objects
XXXWritter - Write data to a specific location
XXXReader - Read data from a specific location
XXXProtocol - Define a specific protocal
XXXConverter - A coverter that is used to convert from one type to another
XXXShepherd - Manage the lifetime of objects from creation to unload (delete)
XXXCoordinator - Coordinates a specific action or object
XXXBuilder - Is able to create new instances of objects
XXXContainer - A container of elements
XXXHandler - An handler for some a functionality
XXXController - Define a controller for an object
XXXEntity - Define an entity
XXXView - Define a view for a specific class.
XXXTarget
XXXSynchronizer
XXXBucket
XXXAttribute
XXXType
XXXEditor
XXXBase
XXXNode
XXXItem
XXXInfo
XXXHelper
XXXProvider
XXXException