Monday, May 21, 2007

annotations' usage

Instead of passing the hard-coded value to an annotated element, why not pass a configuration file (could be XML) path to the annotation handler?

This extra indirection uses the best of annotations and externally controlled configuration concepts and you can really have highly flexible and testable systems.

This approach could also help us in developing Domain Specific languages and evolving systems.

No comments: