Examples of ReflectElementIdPool


Examples of org.codehaus.annogen.override.ReflectElementIdPool

     * 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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.