User: user57  
  Date: 02/02/15 23:16:17

  Modified:    src/main/org/jboss/ejb/plugins
                        EnterpriseContextCachePolicy.java
  Log:
   o re-indent + drop redunant public modifiers
  
  Revision  Changes    Path
  1.10      +43 -44    
jboss/src/main/org/jboss/ejb/plugins/EnterpriseContextCachePolicy.java
  
  Index: EnterpriseContextCachePolicy.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/EnterpriseContextCachePolicy.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- EnterpriseContextCachePolicy.java 26 Nov 2001 03:12:25 -0000      1.9
  +++ EnterpriseContextCachePolicy.java 16 Feb 2002 07:16:16 -0000      1.10
  @@ -4,6 +4,7 @@
    * Distributable under LGPL license.
    * See terms of license at gnu.org.
    */
  +
   package org.jboss.ejb.plugins;
   
   import org.jboss.logging.Logger;
  @@ -17,53 +18,51 @@
    * a MRU one, or any other suitable policy.
    * 
    * @see AbstractInstanceCache
  + * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>Simone Bordet</a>
  - * @version $Revision: 1.9 $
  + * @version $Revision: 1.10 $
    */
  -public interface EnterpriseContextCachePolicy extends CachePolicy
  +public interface EnterpriseContextCachePolicy
  +   extends CachePolicy
   {
  -     // Constants -----------------------------------------------------
  -
  -     // Static --------------------------------------------------------
  -     public static Logger log = 
Logger.getLogger(EnterpriseContextCachePolicy.class);
  -     public static Scheduler scheduler = new Scheduler();
  +   Logger log = Logger.getLogger(EnterpriseContextCachePolicy.class);
  +   Scheduler scheduler = new Scheduler();
        
  -     // Public --------------------------------------------------------
  -     /**
  -      * Final class that hold a single instance of a {@link TimerQueue} object
  -      * for all the CachePolicy instances, allowing the cache policies to 
  -      * register {@link TimerTask}s that will be executed in a single background
  -      * thread. <br>
  -      * Usage:
  -      * <pre>
  -      * TimerTask task = new TimerTask() 
  -      * {
  -      *              public void execute() throws Exception 
  -      *              {
  -      *                      doSomething();
  -      *              }
  -      * };
  -      * scheduler.schedule(task);
  -      * </pre>
  -      * 
  -      * @see TimerQueue
  -      */
  -     public static final class Scheduler
  -     {
  -             private static final TimerQueue m_scheduler = new TimerQueue();
  -             static
  -             {
  -                     m_scheduler.start();
  -                     log.info("Cache policy scheduler started");
  -             }
  -             public final void schedule(TimerTask t) 
  -             {
  -                     schedule(t, 0);
  -             }
  -             public final void schedule(TimerTask t, long delay) 
  -             {
  -                     m_scheduler.schedule(t, delay);
  -             }
  -     }
  +   /**
  +    * Final class that hold a single instance of a {@link TimerQueue} object
  +    * for all the CachePolicy instances, allowing the cache policies to 
  +    * register {@link TimerTask}s that will be executed in a single background
  +    * thread. <br>
  +    * Usage:
  +    * <pre>
  +    * TimerTask task = new TimerTask() 
  +    * {
  +    *                public void execute() throws Exception 
  +    *                {
  +    *                        doSomething();
  +    *                }
  +    * };
  +    * scheduler.schedule(task);
  +    * </pre>
  +    * 
  +    * @see TimerQueue
  +    */
  +   final class Scheduler
  +   {
  +      private static final TimerQueue m_scheduler = new TimerQueue();
  +      static
  +      {
  +         m_scheduler.start();
  +         log.info("Cache policy scheduler started");
  +      }
  +      public final void schedule(TimerTask t) 
  +      {
  +         schedule(t, 0);
  +      }
  +      public final void schedule(TimerTask t, long delay) 
  +      {
  +         m_scheduler.schedule(t, delay);
  +      }
  +   }
   }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to