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

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

...


StoredAnnoOverrider requires us to make an

Wiki Markup
{link:ElementId|http://annogen.codehaus.org/annogen-api/org/codehaus/annogen/override/ElementId.html}{link}
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

Wiki Markup
{link:ReflectAnnoViewer|http://annogen.codehaus.org/annogen-api/org/codehaus/annogen/view/ReflectAnnoViewer.html}{link}
which knows about the AnnoOverrider we created above:

...