Impossible at all. This is already done.
Here are a few Java equivalents:
These are all SpringSource products. If you are serious about Java web development, I highly recommend that you check them out.
Grails actually inspired Rails, hence the name, so you'll see a lot of similarities in the functions and the paradigms between them, including MVC, conditional configuration, and code generation. Therefore, if you want to get the right to develop Rails in Java, I highly recommend Grails. I should note that Grails has more features than Rails, some of which I consider Rails. For example, Grails provides a service layer to handle all business logic. You can easily implement the service level in Rails, but we all love its convenience, and since Grails includes it, itβs more convenient. I hopped between Rails and Grails at one time, both are great frameworks.
Keep in mind that you can also create Rails using Java via JRuby, which is also good. You get all the features of the Ruby language (version 1.8), as well as the ability to integrate and use the Java libraries in your Ruby code.
SpringRoo is the new SpringSource code generator structure, so you can use it with the Spring framework to speed application development.
Grails is actually built on top of the Spring and Groovy frame. Groovy is a Java derivative that looks more like a scripting language and provides all the meta-dynamic programming that you see in languages ββlike Ruby and Python. However, Groovy allows you to write Java code, so there is no need to learn it, not completely.
John
source share