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

Ben Wang bwang at jboss.com
Wed Sep 27 00:47:59 EDT 2006


  User: bwang   
  Date: 06/09/27 00:47:59

  Modified:    src-50/org/jboss/cache/pojo  PojoCacheFactory.java
  Log:
  Updated.
  
  Revision  Changes    Path
  1.6       +20 -1     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.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- PojoCacheFactory.java	26 Sep 2006 13:08:01 -0000	1.5
  +++ PojoCacheFactory.java	27 Sep 2006 04:47:59 -0000	1.6
  @@ -13,20 +13,39 @@
   /**
    * Factory method to create a PojoCache instance.
    *
  - * @version $Id: PojoCacheFactory.java,v 1.5 2006/09/26 13:08:01 bwang Exp $
  + * @version $Id: PojoCacheFactory.java,v 1.6 2006/09/27 04:47:59 bwang Exp $
    */
   public class PojoCacheFactory
   {
  +   /**
  +    * Create a PojoCache instance. Note that this will start the cache life cycle automatically.
  +    * @param config A configuration string that represents the file name that is used to
  +    * configure the underlying Cache instance.
  +    * @return PojoCache
  +    */
      public static PojoCache createInstance(String config)
      {
         return new PojoCacheImpl(config, true);
      }
   
  +   /**
  +    * Create a PojoCache instance.
  +    * @param config A configuration string that represents the file name that is used to
  +    * configure the underlying Cache instance.
  +    * @param start If true, it will start the cache life cycle.
  +    * @return PojoCache
  +    */
      public static PojoCache createInstance(String config, boolean start)
      {
         return new PojoCacheImpl(config, start);
      }
   
  +   /**
  +    * Create a PojoCache instance.
  +    * @param config A configuration object that is used to configure the underlying Cache instance.
  +    * @param start If true, it will start the cache life cycle.
  +    * @return PojoCache
  +    */
      public static PojoCache createInstance(Configuration config, boolean start)
      {
         return new PojoCacheImpl(config, start);
  
  
  



More information about the jboss-cvs-commits mailing list