fix missing cache name in status page

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1425287 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-12-22 14:49:57 +00:00
parent 0a61642271
commit 177acedf38
1 changed files with 5 additions and 3 deletions

View File

@ -79,7 +79,7 @@ public abstract class AbstractRestService
@Inject @Inject
@Named (value = "repositorySessionFactory") @Named(value = "repositorySessionFactory")
protected RepositorySessionFactory repositorySessionFactory; protected RepositorySessionFactory repositorySessionFactory;
@Inject @Inject
@ -92,7 +92,7 @@ public abstract class AbstractRestService
protected RepositoryContentFactory repositoryContentFactory; protected RepositoryContentFactory repositoryContentFactory;
@Inject @Inject
@Named ( value = "archivaTaskScheduler#repository" ) @Named(value = "archivaTaskScheduler#repository")
protected DefaultRepositoryArchivaTaskScheduler repositoryTaskScheduler; protected DefaultRepositoryArchivaTaskScheduler repositoryTaskScheduler;
@Context @Context
@ -173,7 +173,9 @@ public abstract class AbstractRestService
for ( Map.Entry<String, T> entry : springBeans.entrySet() ) for ( Map.Entry<String, T> entry : springBeans.entrySet() )
{ {
String key = StringUtils.substringAfterLast( entry.getKey(), "#" ); String key = StringUtils.contains( entry.getKey(), '#' )
? StringUtils.substringAfterLast( entry.getKey(), "#" )
: entry.getKey();
beans.put( key, entry.getValue() ); beans.put( key, entry.getValue() );
} }
return beans; return beans;