Seeking Code Generator for Spring Web Application [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I have been vetting the process of Code Generators online. I started my search with a promising but not popular Eclipse plugin called FastCode (http://www.3pintech.com/products/fast-code/).
It had a higher learning curve with a tradeoff for flexibility. That was find for me because a lot of our application follows a certain standard that I would need to maintain with the generated code. Unfortunately it was very buggy and I think it may be a dead project.
On to SpringFuse. This looked promising, but I have a few problem with it.
1) We are far into our project development lifecycle and I only need to use it for a subset of new tables in our MYSql database. Springfuse seems to take a "let us generate your entire application" approach.
2) We don't use Hibernate and SpringFuse seems to be tied into this
3) It doesn't seem to be that configurable
What I would like to do is start with a database table, and from there generate a corresponding POJO, DAO for CRUD operations, Service Layer to call the DAO and a Unit test for testing each layer. We have a standard pattern for creating our DAO layer that I will be using.
I am considering using Perl or maybe another templating system to do this but that will involve a significant amount of coding on my part. I was wondering if the SO community knows of any good technologies to use here.
I actually think an online sevice would be awesome here, something like the awesome JSON2POJO, but I don't think it exists.

After some research, the solution that worked best for me was to use the FreeMarker Java Template Engine and write my own code generation system. Using regular expressions to parse our database file and converting some of our existing code into FreeMarker templates only took a couple of days and yielded a system that is going to save us a lot of time.
I recommend this approach to users who are in a similar spot for highly customized Enterprise Applications. Most of the rendered code is not fit for primetime, but the base boilerplate code I'm generating results in huge time-savings.
FreeMarker's templating system is very similar to other technologies like JSTL and it throws very descriptive error messages so designing the templates was very simple.

Related

Circuit Diagram visualization framework for Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am looking for a framework to visualize Circuit Diagrams in Java application.
I have to show Diagrams like that:
For one of my previous projects (in 2008 year) I used Jung. It worked well, but maybe somebody could propose more suitable for my needs framework? Does anyone have a similar task or know a good tools?
Also one of my tasks is to try to layout elements, because there is only info about connections in DB, but there is no layout information. I want to try to minimize manual layout work and looking for layout algorithms.
Thank you in advance.
PS: It is very desirable that the framework will be free.
PPS: Also I am interested in frameworks which can help to show (and edit) such type of diagrams using web browser.
Prefuse is very similar to Jung. I haven't used it extensively but I evaluated both Jung and Prefuse for our graph application.
Another web based option is Protovis which I came across during my evaluation. You can draw interactive graphs with it but I suspect you might need layout information already available to use this tool. Anyway looks like the authors are moving to a new library named D3 so you can check that out.
Another option I see is graphviz.
Here is a big list of graph visualization tools. http://www.mkbergman.com/414/large-scale-rdf-graph-visualization-tools/
I found a java framework named circuit. I think it could help you fix your issue.
http://code.google.com/p/circuit-framework/

Dynamic website framework suggestions [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
What are the open source java based frameworks that can be used to build a dynamic websites?
The dynamic website should allow users to change content in the site. I am not looking for a portal solution, but something lightweight and customizable.
I would recommend Play! Framework. I have worked with it before and it is pretty easy to learn. Extensive tutorials and documentation are on their website.
Because of Play's extensibility, there are many modules for it, one of which is a lightweight CMS module. I have not used this module, but it sounds like what you might be looking for.
Search about Spring MVC or JSF.
Really every Java web framework can be used to create dynamic sites. That's pretty much the entire point of using Java and such frameworks.
If you only needed to serve static content just Apache would be all you need,
There is a bewildering choice of web frameworks in Java. Everyone will tell you theirs is best and all others are bad.
My 2 cents; JSF is one of the most popular choices, rather easy and has lots of support and resources available for it. It's already part of the standard Java EE library, so in most cases you don't have to download or install anything to get started. Any Java EE implementation (JBoss, Glassfish, Resin, Geronimo, etc etc) will do. The only exception is Tomcat.
While there are other choices that also work, it's hard to go wrong with JSF.

Are there any open source Java analysis libraries for data/control dependence? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am looking for a library/API that has some out of the box data and control dependence analyses for Java programs. This would be a static analysis on the control flow graph (CFG) of the given program to compute data dependences and control dependences. I would like to avoid reimplementing these techniques/algorithms if they have already been done. An inter-procedural analysis would be great, but I could work with a library that does an intra-procedural one as well.
Any suggestions would be greatly appreciated.
Edit: One thing I have found is jChord, but I haven't been able to determine yet if it actually has any of the out of the box functionality that I am looking for or if I would have to implement it myself.
Another possibility is the joeq library which seems to at least have the infrastructure necessary for doing this, but the documentation (or lack thereof) is making it difficult for me to tell what it is actually capable of.
I am sure Eclipse does plenty of data flow analysis underneath the hood, but I haven't seen anything yet that is public facing. Anyone know of the Eclipse API having stuff like this?
Try http://www.sable.mcgill.ca/soot/
OP says he is interested in non-open source systems too.
Our DMS Software Reengineering Toolkit with its Java Front End can parse Java source code in all dialects 1.4-1.7, producing full ASTs, build symbol tables, compute types of expressions, and determine control and dataflows within methods, including explicity control dependence as requested by OP.
Usually folks that are interested in advanced analyses have something other than the raw analysis in mind. DMS is an ecosystem of program analysis and transformation tools, that can be used to leverage such analyses into diagnostics about the existing code in terms of source location (drawn directly from the ASTs) or source code (prettyprinted from a subtree of interest), or to generate new code fragments (by assembling ASTs and prettyprinting them) or finally by actually changing the original code (by modifying the ASTs using procedural modifications or better yet, source-to-source transformation, and prettyprinting the modified AST).

Java CLI UI-design: frameworks or libraries? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm currently working on a small utility program that only requires a command line interface, and I started wondering if Java provided any standard way of creating the CLI, in a similar way that Swing and the likes exist for GUIs. I'm not really interested in command line parameters and parsing of them, but rather the command based interaction the user has with the program to use it. This is for the situations where GUI simply is unnecessary or not an option for using the program.
Googling the subject pretty much only results in tutorials on how to use BufferedReader and the likes to do rudimentary interaction with the user, aimed at people learning the basics of Java and writing simple UI that asks for name and prints "Hello World!" etc..
Are the any libraries that are focused on providing a good framework for quickly implementing a more complex CLI UI or is this really something that everyone implements in ad hoc manner for their own utilities?
Maybe someone knows of patterns for the implementation that were created back in time when not everything was graphical? That would also be useful resource.
Perhaps CLI Toolkit...
http://alexis.royer.free.fr/CLI/
You can also have a look and Clamshell-cli or spring shell:
Clamshell-cli is relatively simple and easy to use : You can look at jmx-cli to get a nice example of what can be done with it.
Spring Shell is bigger but more feature-full (tab completion, etc). It has been extracted from spring Roo and released as an independent framework
There is a project called JLine that provides cross-platform support for general command-line input handling:
http://jline.sourceforge.net/
More of a support library than a framework though.
Try searching for CURSES and java, something like http://www.google.co.uk/search?q=curses+for+java . Long time ago CHARVA ( http://www.pitman.co.za/projects/charva/index.html ) looked nice.
I've used the apache commons CLI library in the past and has worked well for me: http://commons.apache.org/cli/

Design of Reporting Services for Java webapp [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
A design question.
I have developed an online test engine web app earlier this year. I have used Java servlets and Freemarker templates and done it entirely following the MVC paradigm.
One big missing feature in the application is that it provides no reporting. The initial design of the application did not consider reporting as part of the core because of various constraints, not necessarily technical. Reporting services as needed now should enable users to get their reports online anytime as well as download them in predefined formats.
The application has grown into a stage where I would not like to put in more code into it and want to isolate the core modules and develop future needs around this core.
I would like to hear a few ideas as to how to go on developing this reporting service around the core app.
Also what reporting tools can I use? I have used Jasper in the past but heard BIRT is good too. Throw your suggestions.
While Jasper is a pretty good choice if you have fairly advanced requirements such as:
Supporting esoteric formats
Parent-child reports
Charts and graphs
But if you really only need to show tabular reports in popular formats such as HTML/PDF/XLS, then you can go a long way with just diplaytag, with a lot less effort than Jasper requires.
A simple tabular report takes about 20 lines of JSP code using displaytag, but the same report requires about 500 lines of XML using Jasper. I'd investigate whether displaytag can meet your requirements before committing to a 'heavyweight reporting solution such as BIRT/Jasper.
I would recommend Jasper because I've used it in the past and found it quite easy to configure and use. It is possible to integrate it into your application without too much trouble.
I have only heard good things about BIRT but never implemented it myself.
I would recommend art: http://art.sourceforge.net/. We are using this tool without any problems. It is still active project so if you add new feature you can add request for it.

Categories