Scope (large -> small) : Repository > Store > Factory > Others
Class Name | Read | Write | Comment |
---|---|---|---|
store | Y | Y | Provide cache machanism. imply signlton pattern |
repository | Y | Y | the same as store , but repository have more features rather than the read/write data, e.g, update/delete data, provide metadata to archive some business goal, e,g. latest update time, sorting the items based on some rules. |
source | Y | N | get the results when calling it |
provider | Y | N | provide the real implementation, we use it when we try to inject the dependencies(eliminate it) |
factory | Y | N | imply Factory pattern, reduce the complexity of creating objects |