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

Jason Thomas Greene jgreene at jboss.com
Wed May 30 02:08:01 EDT 2007


  User: jgreene 
  Date: 07/05/30 02:08:01

  Modified:    src/org/jboss/cache/pojo            PojoCache.java
  Removed:     src/org/jboss/cache/pojo            CachedType.java
                        InternalConstant.java InvocationContext.java
                        MethodDeclarations.java Option.java
                        PojoInstance.java PojoReference.java
                        PojoTreeCache.java
                        PojoTxSynchronizationHandler.java PojoUtil.java
  Log:
  Switch to new notification system
  Resolve jmx test failure
  ensure that the pojo package is api only
  
  Revision  Changes    Path
  1.3       +13 -5     JBossCache/src/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/org/jboss/cache/pojo/PojoCache.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- PojoCache.java	17 Apr 2007 07:47:53 -0000	1.2
  +++ PojoCache.java	30 May 2007 06:08:01 -0000	1.3
  @@ -6,10 +6,11 @@
    */
   package org.jboss.cache.pojo;
   
  -import org.jboss.cache.Cache;
  -
   import java.util.Collection;
   import java.util.Map;
  +import java.util.regex.Pattern;
  +
  +import org.jboss.cache.Cache;
   
   /**
    * <p>Main PojoCache APIs. PojoCache is an in-memory, transactional, fine-grained, and
  @@ -131,9 +132,16 @@
      void addListener(PojoCacheListener listener);
   
      /**
  -    * Retrieve a list of listeners.
  +    * Add a PojoCacheListener
  +    *
  +    * @param listener
  +    */
  +   void addListener(PojoCacheListener listener, Pattern pattern);
  +
  +   /**
  +    * Retrieve a read-only list of listeners.
       */
  -   Collection getListeners();
  +   Collection<PojoCacheListener> getListeners();
   
      /**
       * Remove the specific listener.
  @@ -145,5 +153,5 @@
      /**
       * Obtain the underlying generic cache system. Use this for non-POJO cache operation, e.g.
       */
  -   Cache getCache();
  +   Cache<Object, Object> getCache();
   }
  
  
  



More information about the jboss-cvs-commits mailing list