DataSources improvement

49 views
Skip to first unread message

Alessandro Staniscia

unread,
Mar 20, 2013, 11:49:32 AM3/20/13
to mixare-de...@googlegroups.com
Hi all,
I think is a good idea reorganize the "datasources" as service. Now
it's a composition of singleton (DataSourceStore) and it's a "extensions
of context" (MixContex -> DataSourceManager).

In my idea the DataSources should be stored and managed as services. If
"an activity" needs to use a specific DataSource, the activity itself
can take it from service and display/use it. When 'another actvity'
wants to add a new datasource, the activity itself add it on this
service: idem if I want to configure. Also it allows you to develop a
isolated testSuite and automatic testSuite for all datasource type
without the infrastructure of Activity or View

What do you think?
Reply all
Reply to author
Forward
0 new messages