mirror of https://github.com/apache/archiva.git
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:
parent
0a61642271
commit
177acedf38
|
@ -79,7 +79,7 @@ public abstract class AbstractRestService
|
|||
|
||||
|
||||
@Inject
|
||||
@Named (value = "repositorySessionFactory")
|
||||
@Named(value = "repositorySessionFactory")
|
||||
protected RepositorySessionFactory repositorySessionFactory;
|
||||
|
||||
@Inject
|
||||
|
@ -92,7 +92,7 @@ public abstract class AbstractRestService
|
|||
protected RepositoryContentFactory repositoryContentFactory;
|
||||
|
||||
@Inject
|
||||
@Named ( value = "archivaTaskScheduler#repository" )
|
||||
@Named(value = "archivaTaskScheduler#repository")
|
||||
protected DefaultRepositoryArchivaTaskScheduler repositoryTaskScheduler;
|
||||
|
||||
@Context
|
||||
|
@ -173,7 +173,9 @@ public abstract class AbstractRestService
|
|||
|
||||
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() );
|
||||
}
|
||||
return beans;
|
||||
|
|
Loading…
Reference in New Issue