8000 Add convenience abstract super classes by WonderCsabo · Pull Request #1255 · androidannotations/androidannotations · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Conversation

@WonderCsabo
Copy link
Member

Related to #1239.

@yDelouis @dodgex this is what you guys think of?

@dodgex
Copy link
Member
dodgex commented Nov 20, 2014

looks good to me.

@yDelouis
Copy link
Contributor

I'm okay with that. I just wonder if there are some better package name for this two classes in the API.
I was thinking of org.androidannotations.api.content.AbstractBroadcastReceiver and org.androidannotations.api.app.AbstractIntentService, to be consistent with Android packages.

@dodgex
Copy link
Member
dodgex commented Nov 21, 2014

hm... maybe org.androidannotations.support.content.AbstractBroadcastReceiver and org.androidannotations.support.app.AbstractIntentService as both are not directly related to the api but supporting classes.

@WonderCsabo
Copy link
Member Author

I do not think we should use support, it may confuse users about the Android Support library. But otherwise i agree.

@dodgex
Copy link
Member
dodgex commented Nov 21, 2014

hmm. yeah there might be some people that can't get the diffrence between org.androidannotations.support and android.support packages... but I'm not sure if people that get confused by this, should be writing code at all (sorry if that sounds harsh).

i think wherever possible we (and every other project) should name packages by its meaning/use and not by "oh that could be confusing".

</personal opinion>

@WonderCsabo
Copy link
Member Author

I not just meant the user confuses the two package, but he/she can think this package is somewhat related to the support lib. But otherwise i agree again. :)
@yDelouis WDYT?

@yDelouis
Copy link
Contributor

The proposal of @dodgex seems good to me. These classes doesn't exists in android support library so there is no chance someone get confused.

@ReceiverAction and @ServiceAction require to add an empty
implementation of the corresponding event handling method, since the
method is abstract in the super class. For convenience, we provide
AbstractBroadcastReceiver and AbstractIntentService classes, which
implement the corresponding method, so the client does not have to.
@WonderCsabo WonderCsabo force-pushed the 1239_convenienceAbstractApiClasses branch from 3901e0e to 2caa8cf Compare November 21, 2014 12:06
WonderCsabo added a commit that referenced this pull request Nov 21, 2014
…Classes

Add convenience abstract super classes for @ReceiverAction and @ServiceAction
@WonderCsabo WonderCsabo merged commit 0da0fc9 into androidannotations:develop Nov 21, 2014
@WonderCsabo WonderCsabo deleted the 1239_convenienceAbstractApiClasses branch November 21, 2014 12:16
@WonderCsabo WonderCsabo added this to the 3.3 milestone Nov 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0