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

:polemico: Removing RequestInfo #440

Merged
merged 8 commits into from
Mar 20, 2014

Conversation

lucascs
Copy link
Member

@lucascs lucascs commented Mar 19, 2014

RequestInfo is also a VRaptor 3 inheritance that doesn't make sense for VRaptor 4.

It's role was to implement proper scopes for the DI providers. Since CDI handles the scopes, this class is not that important anymore.

So I removed all direct references to RequestInfo and turned it into NewRequest event.

@@ -81,6 +82,15 @@ public void setParameter(String key, String... value) {
logger.debug("Setting {} with {}", key, value);
extraParameters.put(key, value);
}

Copy link
Member

Choose a reason for hiding this comment

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

This changes servlets behaviour. Have you tested in Wildfly and another servlet container?

Copy link
Member Author

Choose a reason for hiding this comment

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

No it doesn't.

the HSRequest method is getRequestURI ;)

maybe this is not the best name...

@garcia-jj
Copy link
Member

I love when we have a pull request that removes a lot of code. But the best of this pr it's merge some factories. Sounds like good for me. Less code keeps vraptor more simple and easily to maintain.

@Turini
Copy link
Member

Turini commented Mar 19, 2014

the best of this pr it's merge some factories. Sounds like good for me.

+1. It was a nice change

lucascs added a commit that referenced this pull request Mar 20, 2014
:polemico: Removing RequestInfo
@lucascs lucascs merged commit 971ad28 into lc-remove-container-provider Mar 20, 2014
@lucascs lucascs deleted the lc-request-info branch March 20, 2014 04:00
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