Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Refactoring ehcache module
Browse files Browse the repository at this point in the history
  • Loading branch information
effrafax committed Nov 18, 2019
1 parent d5a9a52 commit 6b54260
Show file tree
Hide file tree
Showing 9 changed files with 194 additions and 61 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,18 @@
<version>${log4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
<scope>test</scope>
</dependency>
<!-- spring -->
<dependency>
<groupId>org.springframework</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
*/
public class CacheFactory
{
public static final String PROP_FILE = "META-INF/archiva-cache.properties";

static class CacheFactoryHolder
{
static CacheFactory instance = new CacheFactory( );
Expand All @@ -64,7 +66,7 @@ private CacheFactory( )
classLoader = ClassLoader.getSystemClassLoader( );
}

Enumeration cachePropResources = classLoader.getResources( "META-INF/plexus-cache.properties" );
Enumeration cachePropResources = classLoader.getResources( PROP_FILE );

if ( cachePropResources.hasMoreElements( ) )
{
Expand Down
17 changes: 16 additions & 1 deletion spring-cache/spring-cache-providers/spring-cache-ehcache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>2.7.5</version>
<version>2.10.6</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
Expand All @@ -67,6 +67,21 @@
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jcl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Loading

0 comments on commit 6b54260

Please sign in to comment.