-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add support to automatic register handler annotated with RegisterActionH... #292
Conversation
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not valid license
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
* | ||
*/ | ||
public class AnnotatedActionBeandHandlerRegistrator implements BeanPostProcessor, Ordered { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.