Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor entity processor chain. Implements #533 #551

Merged
merged 1 commit into from
Dec 6, 2017

Conversation

dmfs
Copy link
Owner

@dmfs dmfs commented Dec 6, 2017

This is the first step of a major refactoring of the provider. This step essentially merges the "before*" and "after*" methods of EntityProcessor and converts most implementations into decorators.

@dmfs dmfs requested a review from lemonboston December 6, 2017 10:22
@dmfs dmfs force-pushed the stories/533-entityprocessors branch from 8637f17 to e63a8ad Compare December 6, 2017 16:10
Copy link
Contributor

@lemonboston lemonboston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, a nice and significant design improvement for these EntityProcessors.

@Override
public T insert(SQLiteDatabase db, T entityAdapter, boolean isSyncAdapter)
{
Log.d("Logging EntityProcessor", "before insert");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the tag to a constant?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, fixed that.

This is the first step of a major refactoring of the provider. This step essentially merges the "before*" and "after*" methods of `EntityProcessor` and converts most implementations into decorators.
@dmfs dmfs force-pushed the stories/533-entityprocessors branch from e63a8ad to f1d408e Compare December 6, 2017 22:53
@dmfs dmfs merged commit aa955cd into master Dec 6, 2017
@dmfs dmfs deleted the stories/533-entityprocessors branch December 12, 2017 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants