Otto integration by pyricau · Pull Request #526 · androidannotations/androidannotations · GitHub
Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Otto integration#526

Merged
pyricau merged 2 commits into
developfrom
272_Otto_integration
Mar 5, 2013
Merged

Otto integration#526
pyricau merged 2 commits into
developfrom
272_Otto_integration

Conversation

@pyricau

@pyricau pyricau commented Mar 5, 2013

Copy link
Copy Markdown
Contributor

See #272.

The Otto integration is a thin layer.

Here is how it works : if @Subscribe or @Produce is used on methods in an AndroidAnnotations annotated class, then these methods gets overridden in the generated subclass. AndroidAnnotations performs checks based on what Otto expects (public methods, return type, etc), and adds compile errors for faster feedback.

The overriding methods are annotated with the corresponding annotation, and delegate to super.

pyricau added a commit that referenced this pull request Mar 5, 2013
@pyricau pyricau merged commit 2aa295e into develop Mar 5, 2013
@pyricau pyricau deleted the 272_Otto_integration branch March 5, 2013 14:27
@mathieuboniface

Copy link
Copy Markdown
Contributor

@bishopmatthew

Copy link
Copy Markdown

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