/**
* StoredAnnoOverrider is a helper class that makes simple overrides like
* this a lot more convenient.
*/
StoredAnnoOverrider storedOverrides = StoredAnnoOverrider.Factory.create();
/**
* In order to work with the StoredAnnoOverrider, we need one of
* these pools for getting ElementIds. In the interests of efficiency,
* it's a good idea to create one of these and re-use it as much as
* possible.
*/
ReflectElementIdPool elementPool = ReflectElementIdPool.Factory.create();
/**
* We loop through all of the specified classes and change the cacheSize
* on each...
*/
for(int i=0; i<classes.length; i++) {
log("The User thinks the cache size for\n "+
classes[i].getName()+"\nis too small, so...");
/**
* We have to create an ElementId for the class...
*/
ElementId myBeanId = elementPool.getIdFor(classes[i]);
/**
* ...which we then use to create a set of AnnoBeans...
*/
AnnoBeanSet annos = storedOverrides.findOrCreateStoredAnnoSetFor(myBeanId);
/**
* ...in which we create an AnnoBean for the class' DeploymentInfo
* annotation. The StoredAnnoOverrider works by simply handing this
* object back to the AnnoViewer later on,