Return-Path: X-Original-To: apmail-archiva-commits-archive@www.apache.org Delivered-To: apmail-archiva-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61A5CE995 for ; Tue, 8 Jan 2013 23:11:58 +0000 (UTC) Received: (qmail 34885 invoked by uid 500); 8 Jan 2013 23:11:58 -0000 Delivered-To: apmail-archiva-commits-archive@archiva.apache.org Received: (qmail 34840 invoked by uid 500); 8 Jan 2013 23:11:58 -0000 Mailing-List: contact commits-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@archiva.apache.org Delivered-To: mailing list commits@archiva.apache.org Received: (qmail 34833 invoked by uid 99); 8 Jan 2013 23:11:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 23:11:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 23:11:55 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9CB972388C28; Tue, 8 Jan 2013 23:10:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1430621 [17/48] - in /archiva/site-content/redback/components: ./ apidocs/assets/ apidocs/reference/ apidocs/reference/org/apache/archiva/redback/components/apacheds/ apidocs/reference/org/apache/archiva/redback/components/cache/ apidocs/r... Date: Tue, 08 Jan 2013 23:10:20 -0000 To: commits@archiva.apache.org From: olamy@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130108231049.9CB972388C28@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/CacheBuilder.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/CacheBuilder.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/CacheBuilder.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/CacheBuilder.html Tue Jan 8 23:10:10 2013 @@ -33,25 +33,25 @@ 23 24 25 /** -26 * CacheBuilder Interface, for obtaining caches from plexus using hints or clazz names. +26 * CacheBuilder Interface, for obtaining caches from spring using beans names or clazz names. 27 * 28 * @author Olivier Lamy 29 * 30 * @since 3 February, 2007 31 */ -32 public interface CacheBuilder +32 public interface CacheBuilder<V,T> 33 { 34 /** 35 * @param roleHint 36 * @return 37 */ -38 Cache getCache( String roleHint ); +38 Cache<V,T> getCache( String roleHint ); 39 40 /** 41 * @param clazz 42 * @return 43 */ -44 Cache getCache( Class clazz ); +44 Cache<V,T> getCache( Class clazz ); 45 46 } Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/DefaultCacheBuilder.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/DefaultCacheBuilder.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/DefaultCacheBuilder.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/DefaultCacheBuilder.html Tue Jan 8 23:10:10 2013 @@ -47,15 +47,15 @@ 37 * 38 */ 39 @Service -40 public class DefaultCacheBuilder -41 implements CacheBuilder +40 public class DefaultCacheBuilder<V,T> +41 implements CacheBuilder<V,T> 42 { 43 44 private Logger log = LoggerFactory.getLogger( getClass() ); 45 -46 private Cache defaultCache; +46 private Cache<V,T> defaultCache; 47 -48 private Cache noCache = new NoCacheCache(); +48 private Cache<V,T> noCache = new NoCacheCache<V,T>(); 49 50 @Inject 51 private ApplicationContext applicationContext; @@ -75,7 +75,7 @@ 65 } 66 } 67 -68 public Cache getCache( String roleHint ) +68 public Cache<V,T> getCache( String roleHint ) 69 { 70 if ( this.applicationContext.containsBean( "cache#" + roleHint ) ) 71 { @@ -85,7 +85,7 @@ 75 return this.getDefaultCache(); 76 } 77 -78 public Cache getCache( Class clazz ) +78 public Cache<V,T> getCache( Class clazz ) 79 { 80 return this.getCache( clazz.getName() ); 81 } @@ -96,7 +96,7 @@ 86 // TODO dispose default ? 87 } 88 -89 public Cache getDefaultCache() +89 public Cache<V,T> getDefaultCache() 90 { 91 return defaultCache == null ? this.noCache : this.defaultCache; 92 } Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/package-summary.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/package-summary.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/package-summary.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/builder/package-summary.html Tue Jan 8 23:10:10 2013 @@ -67,6 +67,6 @@
- Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved. + Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved. \ No newline at end of file Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/factory/package-summary.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/factory/package-summary.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/factory/package-summary.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/factory/package-summary.html Tue Jan 8 23:10:10 2013 @@ -72,6 +72,6 @@
- Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved. + Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved. \ No newline at end of file Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/NoCacheCache.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/NoCacheCache.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/NoCacheCache.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/NoCacheCache.html Tue Jan 8 23:10:10 2013 @@ -42,11 +42,11 @@ 32 * @author Olivier Lamy 33 * @since 5 February, 2007 34 */ -35 public class NoCacheCache -36 extends AbstractCache -37 implements Cache +35 public class NoCacheCache<V, T> +36 extends AbstractCache<V, T> +37 implements Cache<V, T> 38 { -39 class NoStats +39 static final class NoStats 40 implements CacheStatistics 41 { 42 @@ -88,7 +88,7 @@ 78 /* do nothing */ 79 } 80 -81 public Object get( Object key ) +81 public T get( V key ) 82 { 83 return null; 84 } @@ -98,36 +98,26 @@ 88 return stats; 89 } 90 -91 public boolean hasKey( Object key ) +91 public boolean hasKey( V key ) 92 { 93 return false; 94 } 95 -96 public Object put( Object key, Object value ) +96 public T put( V key, T value ) 97 { 98 return null; 99 } 100 -101 public void register( Object key, Object value ) +101 public void register( V key, T value ) 102 { 103 /* do nothing */ 104 } 105 -106 public Object remove( Object key ) +106 public T remove( V key ) 107 { 108 return null; 109 } -110 -111 public <T> T get( Object key, Class<T> clazz ) -112 { -113 return null; -114 } -115 -116 public <T> T put( Object key, Object value, Class<T> clazz ) -117 { -118 return null; -119 } -120 } +110 }
Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/package-summary.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/package-summary.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/package-summary.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/impl/package-summary.html Tue Jan 8 23:10:10 2013 @@ -67,6 +67,6 @@
- Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved. + Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved. \ No newline at end of file Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/package-summary.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/package-summary.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/package-summary.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/org/apache/archiva/redback/components/cache/package-summary.html Tue Jan 8 23:10:10 2013 @@ -92,6 +92,6 @@
- Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved. + Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved. \ No newline at end of file Modified: archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/overview-summary.html URL: http://svn.apache.org/viewvc/archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/overview-summary.html?rev=1430621&r1=1430620&r2=1430621&view=diff ============================================================================== --- archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/overview-summary.html (original) +++ archiva/site-content/redback/components/spring-cache/spring-cache-api/xref/overview-summary.html Tue Jan 8 23:10:10 2013 @@ -74,6 +74,6 @@
- Copyright © 2006-2012 The Apache Software Foundation. All Rights Reserved. + Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved. \ No newline at end of file