Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

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

link
AnnoOverrider
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 create an instance of StoredAnnoOverrider1
link
StoredAnnoOverrider
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 ElementId1

link
ElementId
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 a ReflectAnnoViewer1

link
ReflectAnnoViewer
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:

...