Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Coming from .NET, I'm used to Ninject, that's a small simple ioc-container. Is there anything simple and lightweight for Java?
The simpler the better!
Pico container or google-guice. See a comparison here.
Btw, few people will call spring "ligthweight", but it can be used as such with only the basic features. Hence it's included in the above comparison.
CDI? (almost the same thing as Guice, but is a JSR rather than proprietary)
Guice?
Silk DI is a 120K jar with no further runtime dependencies needed. So it is way more lightweight than e.g. guice or spring and still smaller as pico-container but has an even more powerful feature set. Also it doesn't cheat by splitting features into a separate additional jars like multibind for guice or the gems for pico-container.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Do you know any good tutorial for OSGi? It should detail how it is used but also how it work internally and the different implementations and their differences.
I personally can recommend you OSGi and Equinox (it focuses on Equinox). I did not read it myself (yet), but OSGi in Action looks promising.
A very good way to get started with OSGi in the way it was intended is with bndtools. Take a look at http://bndtools.org/doc/tutorials/components/ for more information.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any tool that helps analyse code structure in a java project, either as an eclipse pluggin or as a standalone?
I guess something similar to what Structure101 seems to do, but I am looking for something free.
I.e. to visualize dependencies among jars, classes, class-hierarchies etc.
It is mostly to understand an existing code-base faster, rather than set coding rules or profile etc.
I've found the following tools useful
CodePro Analytics - http://code.google.com/javadevtools/codepro/doc/index.html
JDepend - http://www.clarkware.com/software/JDepend.html
Sonar - http://www.sonarsource.org/
Metrics - http://metrics.sourceforge.net/
you mean like Sonar?
Tons of them. The thing is you probably want to google for the kinds of tests, eg, "McCabe complexity java" or "test coverage java".
You might have a look at this wikipedia article.
Update
Aha. Try depfind.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm interested in open-source Java/C/C++ framework for pipes-and-filters (like described in that book) paradigm.
Can you recommend some?
EDIT: I'm looking for as much "pure" (or lightweight) frameworks as possible: frameworks which encourage programming in "pipes-and-filters" technique, without reliance on any standards, such as XML or JMS, but on language only.
If you look at chapter 6 of the book you link to, you'll notice it has samples for JMS. A quick visit at Google leads us to a list of open source implementations of JMS: http://java-source.net/open-source/jms
I know you asked about Java/C/C++, but thought I'd add:
In .NET, the WCF Channel model works like this.
W3C XML Pipline spec, XProc is kind of pipes and filters.
There's a java implementation here. XProc comprises a number of processors (XSLT transforms, XPath selects, serializing/deserializing to file) i.e. filters - and these are connected by ports carrying XML data - basically pipes.
I just discovered Spring integration framework. Looks like the sample of what I was asking for.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
i am required to use mockito to create unit testing framework for existing code. I am unable to find a good place to get started with learning Mockito. Could you please point me to a good learning resource for mockito? (online resource or otherwise)
In the "Help me to start" thread on the mockito discussion group on Google, Szczepan Faber, the project owner of mockito, suggests:
the Documentation which includes some examples
Brett L. Schuchert's tutorial
I'd take a look at the posts in the mockito category of Szczepan's blog too.
For a overview about mock and mockito you can refer Mockito-a-great-mock-framework-for-Java-development
a nice succinct overview: http://www.javacodegeeks.com/2012/05/mocks-and-stubs-understanding-test.html
also, take a close look at the org.mockito.Mockito class itself in the API. most of the base behavior is held therein.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Could someone please recommend a simple (as in very easy to understand) charting library for Java?
I just want to add a simple chart into my program and figured I might save some time by learning a library.
JFreeChart is one of the best open source charting packages for java.
A litte outdated, but still working and with free documentation (JFreeChart has just the API for free, the devguide is saled) is jCharts.
A sample code for Swing is available here, if you don't need anything fancy or special it may be easier than JFreeChart because of the direct available documentation.
JFreeChart is definitely the way to go. Although the (for-sale) manual is useful if you're doing a huge amount of work using this, it's instructive in the first instance to check out this huge selection of examples (screenshots and code). That will get you 90% of what you need.