Overview
Thos topic covers using a standard Java Class file as a configuration file. The approach is to use a java class file as a configuration file.
Using Java Config Files
Typically configuration files are describe abstract data and associations. However, configuration files can be difficult to debug, refactor or validate at compile time.
Java Config Files contain Simple Java Objects which can be loaded dynamically. These files can be processed by a byte code manipulation such as ASM to enrich the behaviour or extract code fragments.
It is suggested that your application should compile without the Java Config File to minimise dependancies on the configuration file, but it is not a requirement.
Essence File
Essence Java Configuration File supports Java Configuration Files loaded from disk or compiled in memory (without disk access)
Spring JavaConfig
Spring have announced that they support the JavaConfig concept. In fact you have been able to configure Spring from Java from day one, the difference is the idea of having a methodology for doing this and seeing this as a viable alternative to Spring XML configuration or Guice's java configuration.
http://www.jroller.com/habuma/entry/guice_vs_spring_javaconfig_a
Add Comment