Skip to content
This repository was archived by the owner on Apr 4, 2026. It is now read-only.

avoid constructing objects if not needed#248

Merged
yanns merged 1 commit into
play2war:developfrom
yanns:mini-fixes
Jun 10, 2014
Merged

avoid constructing objects if not needed#248
yanns merged 1 commit into
play2war:developfrom
yanns:mini-fixes

Conversation

@yanns

@yanns yanns commented Jun 2, 2014

Copy link
Copy Markdown
Member

No description provided.

yanns referenced this pull request in yanns/play2-war-plugin Jun 2, 2014
The handling of a play result in the default request handler is moved
to pushPlayResultToServletOS. This handling stayed the same. This change
should not have any impact on the existing servlet wrapper for servlet < 3.1.

For servlet 3.1, pushPlayResultToServletOS is overwritten to provide a
non-blocking asynchron handling based on the new WriteListener.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I tend to try to avoid explicit completes and onComplete and instead do it in a flow (avoid callbacks).

result.completeWith(nextStep.run.andThen(_ => Logger("play.war.servlet31").trace("extract result from nextStep")))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

good point!

yanns added a commit that referenced this pull request Jun 10, 2014
avoid constructing objects if not needed
@yanns yanns merged commit a6b9160 into play2war:develop Jun 10, 2014
@yanns yanns deleted the mini-fixes branch June 10, 2014 13:41
@dlecan dlecan added this to the v1.2 milestone Jun 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants