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

Single managed InterceptorExecutor #244

Merged
merged 18 commits into from
Nov 1, 2013
Merged

Single managed InterceptorExecutor #244

merged 18 commits into from
Nov 1, 2013

Conversation

Turini
Copy link
Member

@Turini Turini commented Nov 1, 2013

Now we are using 1 managed app scoped executor,
instead of 4 non-managed for each interceptor handlers.

} else {
stack.next(controllerMethod, currentController);
}
}

private Method find(Class<? extends Annotation> step) {
Copy link
Member

Choose a reason for hiding this comment

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

I think that find is too generic, but I don't have suggestion to a better name. What you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe findMethodWith(AroundCall.class ...). looks better?

Copy link
Member

Choose a reason for hiding this comment

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

Yes!

Copy link
Member Author

Choose a reason for hiding this comment

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

Nice! Done 85c52a5

@garcia-jj
Copy link
Member

I don't have large knowledge in interceptorexecutor. But sounds like good for me. I really love these optimizations.

✈️ take off

@Turini
Copy link
Member Author

Turini commented Nov 1, 2013

sounds like good for me. I really love these optimizations.

Nice! Tks Otávio. 'll hold just a little more, to more revisions :)

@garcia-jj
Copy link
Member

Have you check performance improvement with AB?

@Turini
Copy link
Member Author

Turini commented Nov 1, 2013

Have you check performance improvement with AB?

Yes! Local running, reduces one second on time taken for tests
It was not much, but good for a simple and small step

if(!around.accept()) around = new StackNextExecutor(simpleInterceptorStack);
if(!before.accept()) before = new DoNothingStepExecutor();
private void extractAllInterceptorMethods() {
MirrorList<Method> methods = stepInvoker.findAllMethods(interceptorClass);
Copy link
Member

Choose a reason for hiding this comment

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

Do you really need MirrorList here? Why not just List?

Besides that 🍧

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you really need MirrorList here? Why not just List?

I really need :( stepInvoker.findMethod(...) uses
MirrorList to call .matching(new InvokeMatcher(step))

Turini added a commit that referenced this pull request Nov 1, 2013
@Turini Turini merged commit 53a91b3 into master Nov 1, 2013
@Turini Turini deleted the refactoringStepExecutors branch November 1, 2013 15:48
@ghost ghost assigned Turini Nov 20, 2013
@Turini Turini added this to the 4.0.0-beta-3 milestone Mar 6, 2014
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.

3 participants