-
Notifications
You must be signed in to change notification settings - Fork 11
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
move all groovy-related code from "framework" to "fastergt" #316
Conversation
It would be nice to reference issue #65 in the commit message. 🙏 |
@@ -296,8 +294,6 @@ public synchronized void start() { | |||
private void injectStaticFields() { | |||
injectStaticFields(Play.classes.getAssignableClasses(PlayController.class)); | |||
injectStaticFields(Play.classes.getAssignableClasses(Job.class)); | |||
injectStaticFields(Play.classes.getAssignableClasses(FastTags.class)); |
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.
Just viewing the diff ... : do these lines have an alternative? Or can be implemented somehow?
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.
@xabolcs I just checked that classes FastTags
and JavaExtensions
do NOT have any static fields. Also, these classes don't have children. There is nothing to inject.
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.
Answering my own question: one could move the needed code to the plugin's onApplicationStart()
.
For example see what cies' did in PR #227!
f787af6
to
345ca3a
Compare
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 tested, but the diff looks good
There were talk about the If it's still valid, it would be nice to see a few words / snippet in the README, or just a link to an example test app in |
I find it odd that I'm not sure how you handle errors when the In order to test your PR, I'd move the test cases from my PR to your PR and see how they are handled. I'm afraid in your PR there is no way to serve "pretty error pages" without the My end goal is to completely free |
I suggest a very simple approach. |
I understand your concern. Yes, probably we should move all these classes to "fastergt" module. |
345ca3a
to
f856c8f
Compare
May I ask to document this new |
This is not a new requirement, actually. :) Yes, we could write it to README, I think. |
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.
lgtm!
it allows to fully avoid Groovy dependencies for users with another templating engine (e.g. Kotlin templates).
306f0de
to
e6a7996
Compare
it allows to fully avoid Groovy dependencies for users with another templating engine (e.g. Kotlin templates).