We start out with a simple JSR175 annotation type called DeploymentInfo.
DeploymentInfo.java
We then run Annogen's compilation task on that class to generate an AnnoBean which implements DeploymentInfo.
build.xml
We then create a very simple AnnoOverrider:
User.java
...and a required identifier for the DeploymentInfo.class:
User.java
DeploymentInfoAnnoBean annoBean = (DeploymentInfoAnnoBean)
annos.findOrCreateBeanFor(DeploymentInfo.class);
and finally override its value:
User.java
DeployerTool.java
DeployerTool.java
Labels
