[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo ...

Ben Wang bwang at jboss.com
Mon Sep 18 22:32:02 EDT 2006


  User: bwang   
  Date: 06/09/18 22:32:02

  Modified:    src-50/org/jboss/cache/pojo   PojoCache.java
                        PojoCacheFactory.java
  Log:
  1. added create and destroy lifecycle methods
  2. add more option to create PojoCache
  
  Revision  Changes    Path
  1.6       +14 -0     JBossCache/src-50/org/jboss/cache/pojo/PojoCache.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoCache.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/PojoCache.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- PojoCache.java	5 Sep 2006 06:11:26 -0000	1.5
  +++ PojoCache.java	19 Sep 2006 02:32:02 -0000	1.6
  @@ -94,6 +94,13 @@
       *
       * @throws PojoCacheException
       */
  +   void create() throws PojoCacheException;
  +
  +   /**
  +    * Lifecycle method to start PojoCache.
  +    *
  +    * @throws PojoCacheException
  +    */
      void start() throws PojoCacheException;
   
      /**
  @@ -105,6 +112,13 @@
      void stop() throws PojoCacheException;
   
      /**
  +    * Lifecycle method to destroy PojoCache.
  +    *
  +    * @throws PojoCacheException
  +    */
  +   void destroy() throws PojoCacheException;
  +
  +   /**
       * Add a PojoCacheListener
       *
       * @param listener
  
  
  
  1.4       +34 -28    JBossCache/src-50/org/jboss/cache/pojo/PojoCacheFactory.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PojoCacheFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/PojoCacheFactory.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- PojoCacheFactory.java	8 Sep 2006 07:52:54 -0000	1.3
  +++ PojoCacheFactory.java	19 Sep 2006 02:32:02 -0000	1.4
  @@ -8,11 +8,12 @@
   package org.jboss.cache.pojo;
   
   import org.jboss.cache.pojo.impl.PojoCacheImpl;
  +import org.jboss.cache.config.Configuration;
   
   /**
    * Factory method to create a PojoCache instance.
    *
  - * @version $Id: PojoCacheFactory.java,v 1.3 2006/09/08 07:52:54 bwang Exp $
  + * @version $Id: PojoCacheFactory.java,v 1.4 2006/09/19 02:32:02 bwang Exp $
    */
   public class PojoCacheFactory
   {
  @@ -25,4 +26,9 @@
      {
         return new PojoCacheImpl(config, start);
      }
  +
  +   public static PojoCache createInstance(Configuration config, boolean start)
  +   {
  +      return new PojoCacheImpl(config, start);
  +   }
   }
  
  
  



More information about the jboss-cvs-commits mailing list