1942 Classes: Statistics About Spring 2.5
Join the DZone community and get the full member experience.Join For Free
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!
Opinions expressed by DZone contributors are their own.