1942 classes: statistics about Spring 2.5
Frameworks are growing with every release. Classes are changed, removed and added. In this series I zoom in on some well known projects and analyze their class names with completely meaningless statistics. First: Spring 2.5.
To get these statistics, I wrote a script that analyzed all classes. They get chopped up on word boundaries, so for ContextAwareFactoryBean the words Context, Aware, Factory and Bean are counted. From the output I generated a Class Cloud.
Spring is a framework of Factories, Beans, and Exceptions
There are 1942 classes currently in Spring. Of those, 213 classes contain the word Factory. Even more classes contain the word Bean. Spring is clearly a framework that loves factories and beans. There is even a FactoryBean class.
Another high score partial class name is the Exception. Exactly 197 classes have that in their class name. From the humble BindException to the fine-grained JdbcUpdateAffectedIncorrectNumberOfRowsException.
Class Cloud (click to enlarge)
Top 10 of partial class names
- Bean: 239
- Factory: 213
- Exception: 197
- Abstract: 158
- Context: 112
- Source: 97
- Utils: 89
- Transaction: 85
- Resolver: 79
- Request: 78
Longest class name
The grand prize goes to two classes: AbstractInterruptibleBatchPreparedStatementSetter and AbstractTransactionalDataSourceSpringContextTests
Both have a length of 49 characters!
Stay tuned for more useless statistics for other well known projects! If you have suggestions for which projects you want to see, please let me know in the comments!
This article is a part of the 'Java Project Statistics' series
Here are all the articles in this series:- 1942 classes: statistics about Spring 2.5
- 8.47% is a Resource: statistics about Wicket
- 37 Factories: statistics about Tomcat 6
- 76 Events: statistics about Hibernate 3.2.2
Subscribe |



Hey!!
This is great
!!!
1942 classes: statistics about Spring 2.5…
[...]Frameworks are growing with every release. Classes are changed, removed and added. In this series I zoom in on some well known projects and analyze their class names with completely meaningless statistics. First: Spring 2.5.[...]…
Hello, what tools have you used to generate such nice looking cloud?
Hi Leszek,
I used Wordle, a great tool to create these clouds!
Daan
You could publish your script for us to generate “useless statistcs” on our own projects!!
[...] have this word in their name. This is quite a low percentage for the top result, compared to the Spring statistics where the top result Bean is present in 12.31% of all [...]
[...] out and makes it ‘easier’ for the experts. Well, Tomcat has 37 of them. Just like Spring, Tomcat has a BeanFactory. The API documentation say just enough to leave me in confusion: [...]
hi
tt3t73coi7m78c99
good luck
hi
tt3t73coi7m78c99
good luck
[...] Daan analyzed the class naming of popular OpenSource projects and put the very interesting results on his blog. [...]
Leave your response!
(What is RSS?)
.read popular posts
.recent comments
.categories
.blogroll
.now reading
Currently reading:
Recently finished:
View all books
jWeekend
jWeekend: Intensive, 1 and 2 day Java Technology, OO, JPA, Spring courses for busy people.
Recent Posts
Twitter
About
I'm Daan, and this is my blog. I'm a Java software developer, and at work we build open source software for the health care industry. We apply Scrum and some principles of eXtreme Programming.
We use things like Java, Spring, Hibernate, Wicket, OSGI, on Apple hardware.
Feel free to contact me via Skype.