ひがやすを技術ブログ

電通国際情報サービスのプログラマ

JavaOne SF call for papers

Title

DI:Configuration files must DIe!!! - Dependency Injection made easy

abstract

Today, DI is the most popular technology of Java. However, did it make our development work really easy? You must be still irritated with writing configuration files. Seasar2 frees you from such annoyance and brings you comfortable DI Life. You will never look back at the DI as we know today.

outline and details

  • Application Development heads for "Less Configuration"

Nobody wish to write configuration files. It is not only annoying but also prone to mistakes. It would be wonderful if a development framework automatically generate configuration. And it is no longer a dream. Today, application development is heading for "Less Configuration" age.

  • Problems of DI today

It is one of the basic principles of DI to "separating configuration from use". However, since we have to write so much configuration into files, they tend to become too large to maintain efficiently.

  • Patchwork solution

One of the solutions to cope with those huge configuration files is to embed configuration data into source code using XDoclet or Annotation. Though this makes it easier for us to find necessary information, the situation has not changed at all in that we still have to write configuration. We just moved configuration data from files to source code. Thus, we are still prone to mistakes.

  • Rosy world with "Less Configuration" concept

Fundamental solution against huge configuration files is to eliminate the necessity to write configuration. But how? It is "Convention over Configuration" that forms the key idea to realize the world without configuration. In this concept, it is a role of framework to set up configuration as long as conventions are well preserved. Seasar2 realizes "Less Configuration" with "Convention over Configuration" concept.

  • Summary

Today, DI faces a problem of large configuration files. Fundamental solution to this is "Convention over Configuration" concept, where it is no longer needed to write configuration. Seasar2 will help you from the hell of configuration files.


追記:Seasar2そのものについての説明がほとんど無いですね。それを加えたいと思います。