Versions Compared

Key

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

...

Notice that the generated DeploymentInfoAnnoBean class has a setter for cacheSize. We're now going to create an

link
AnnoOverrider
AnnoOverrider
1http://annogen.codehaus.org/annogen-api/org/codehaus/annogen/override/AnnoOverrider.html
which uses that setter to effectively change the size of the cache on TinyCacheEJB. We first create an instance of
link
StoredAnnoOverrider
StoredAnnoOverrider
1http://annogen.codehaus.org/annogen-api/org/codehaus/annogen/override/StoredAnnoOverrider.html
, which is a helper class Annogen provides for building simple AnnoOverriders.

...


StoredAnnoOverrider requires us to make an

link
ElementId
ElementId
1http://annogen.codehaus.org/annogen-api/org/codehaus/annogen/override/ElementId.html
for the TinyCacheEJB class:

...

Compared to the Override phase, the View phase is very simple. All we have to do is create an AnnoViewer a

link
ReflectAnnoViewer
ReflectAnnoViewer
1http://annogen.codehaus.org/annogen-api/org/codehaus/annogen/view/ReflectAnnoViewer.html
which knows about the AnnoOverrider we created above:

...