Package org.codehaus.annogen.override

Examples of org.codehaus.annogen.override.StoredAnnoOverrider$Factory


    /**
     * 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,
View Full Code Here

TOP

Related Classes of org.codehaus.annogen.override.StoredAnnoOverrider$Factory

Copyright © 2018 www.massapicom. 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.