Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


This example demonstrates a very simple way in which we might use Annogen to allow for the value of cacheSize to be overridden in an elegant manner.

Generate Phase

The first thing we have to do is generate an AnnoBean that will act as a proxy to instances of DeploymentInfo. To do this, we simply run Annogen's compilation task on DeploymentInfo: