Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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
  • No labels