You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by ar...@apache.org on 2004/08/09 09:39:21 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/cache CacheFilterClassImpl.java CacheFilterPackageImpl.java CacheFilterRegistry.java

arminw      2004/08/09 00:39:21

  Modified:    src/java/org/apache/ojb/broker/cache
                        CacheFilterClassImpl.java
                        CacheFilterPackageImpl.java
                        CacheFilterRegistry.java
  Log:
  restore javadoc, ASL 2.0 conversion remove it
  
  Revision  Changes    Path
  1.7       +20 -0     db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterClassImpl.java
  
  Index: CacheFilterClassImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterClassImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CacheFilterClassImpl.java	4 Apr 2004 23:53:33 -0000	1.6
  +++ CacheFilterClassImpl.java	9 Aug 2004 07:39:20 -0000	1.7
  @@ -17,6 +17,26 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  +
  +/**
  + * A {@link CacheFilter} implementation for filtering objects
  + * before cached, using custom attribute <code>cacheable</code>
  + * in <code>class-descriptor</code> in repository file.
  + *
  + * <br/>
  + * <b>Example:</b>
  + * <br/>
  + * Add this custom attribute to your <code>class-descriptor</code> to avoid
  + * caching of the class.
  + * <pre>
  + * &lt;attribute
  + *    attribute-name="cacheable"
  + *    attribute-value="false"/&gt;
  + * </pre>
  + *
  + * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
  + * @version $Id$
  + */
   public class CacheFilterClassImpl implements CacheFilter
   {
       public static final String CACHEABLE = "cacheable";
  
  
  
  1.9       +26 -0     db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterPackageImpl.java
  
  Index: CacheFilterPackageImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterPackageImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- CacheFilterPackageImpl.java	4 Apr 2004 23:53:33 -0000	1.8
  +++ CacheFilterPackageImpl.java	9 Aug 2004 07:39:20 -0000	1.9
  @@ -19,6 +19,32 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  +
  +
  +/**
  + * A {@link CacheFilter} implementation for filtering objects
  + * before cached when the given objects package name match a
  + * given package, defined as custom attribute within the
  + * <code>descriptor-repository</code> element or
  + * <code>jdbc-connection-descriptor</code> in the repository file.
  + * <br/>
  + * <b>Example:</b>
  + * <br/>
  + * Add this custom attribute to a <code>jdbc-connection-descriptor</code>
  + * to avoid caching of package trees for the described connection.
  + *
  + * <pre>
  + * &lt;attribute
  + *    attribute-name="exclude-packages"
  + *    attribute-value="org.my.test,org.my.admin"/&gt;
  + * </pre>
  + *
  + * To enable a global exclude of caching, add the custom attribute
  + * entry under the <code>descriptor-repository</code> element.
  + *
  + * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
  + * @version $Id$
  + */
   public class CacheFilterPackageImpl implements CacheFilter
   {
       public static final String EXCLUDE_PACKAGES = "exclude-packages";
  
  
  
  1.4       +15 -0     db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterRegistry.java
  
  Index: CacheFilterRegistry.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/CacheFilterRegistry.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CacheFilterRegistry.java	4 Apr 2004 23:53:33 -0000	1.3
  +++ CacheFilterRegistry.java	9 Aug 2004 07:39:20 -0000	1.4
  @@ -20,6 +20,21 @@
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
  +
  +
  +/**
  + * This {@link ObjectCache Meta-ObjectCache} implementation enabled
  + * the {@link CacheFilter} feature support.
  + * <br/>
  + * With the {@link #addCacheFilter} method {@link CacheFilter}
  + * could be add.
  + * <br/><br/>
  + * <b>Note:</b> Using this meta cache will affect the
  + * cache performance, thus do not add too many {@link CacheFilter}.
  + *
  + * @author <a href="mailto:armin@codeAuLait.de">Armin Waibel</a>
  + * @version $Id$
  + */
   public class CacheFilterRegistry extends AbstractMetaCache
   {
       private ArrayList filterList = new ArrayList();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org