Add support to automatic register handler annotated with RegisterActionH...#292
Conversation
There was a problem hiding this comment.
I meant this it not the license headers used in others files
|
Thanks for contributing ! I think we could do the same for the non-spring part of gwt-dispatch ? |
|
Need to something to change in my contribution ? |
Put the right license header on all files and remove the @author definition in your javadocs. Check also the length of your lines, they should not exceed 120 chars.
It was just a suggestion/ open question. IIRC, when you define a ActionHandler and that you don't use Spring, you have to bind your handler using : bindHandler( Action.class, Handler.class, Validator.class ); We could maybe implements the same mechanism with guice : simply detect the ActionHandler annotated with RegisterActionHandler and bind them automatically (I guess it should be doable). I just want to offer the same feature whatever your are using spring or not. |
|
Ok I modify it and resubmit patch. |
|
About guice i need to look into guice more to understand how do it on it. |
Just commit your changes in your branch and push your branch in the remote repo, that should update this PR |
|
Nice job on the source. Teamcity pull build is complaining a little about checkstyle yet. Might be the first new line after the first class curly. |
|
Could you provide update for checkstyle because now maven checkstyle didn't complain about class curly. Or eclipse formater and clean up for you style. Thanks. |
|
Here are the rules for the checkstyle, and one of these can be added to the eclipse plugin https://github.com/ArcBees/GWTP/tree/master/gwtp-build-tools/src/main/resources |
There was a problem hiding this comment.
remove new lines after the first class curly. :) This may be one of the checkstyle complaints.
|
I use https://github.com/ArcBees/GWTP/tree/master/gwtp-build-tools/src/main/resources this one but the eclipse nor the maven checkstyle doesn't complain about this lines. |
|
Good question, not sure which items its complaining about, I thought maybe that might be it. :) |
|
ok here is my command line about checkstyle after remove new lines no checkstyle complain and before alse |
|
Hmm... @meriouma do you know what might be going on with checkstyle? |
|
I'm looking at it |
|
Your ArcBees/GWTP git remote seems out of date (hence the conflict). You need to merge ArcBees/GWTP:master in your igieon/GWTP:master branch |
Conflicts: gwtp-core/gwtp-dispatch-server-spring/src/main/java/com/gwtplatform/dispatch/server/spring/actionhandlervalidator/LazyActionHandlerValidatorRegistryImpl.java
|
Merged with master |
|
@imrabti could you do a review? |
|
LGTM, |
|
Yes, as you can see in test. |
Add support to automatic register handler annotated with RegisterActionH...
|
This seems undocumented. @imrabti could you please document this feature in the wiki? |
|
Provide some example in wiki or what ? |
|
Exactly |
Add support to automatic register handler annotated with RegisterActionH...
Add support to automatic register handler annotated with RegisterActionH... Former-commit-id: fec0ac4
No description provided.