@Inject
- @Named (value = "repositorySessionFactory")
+ @Named(value = "repositorySessionFactory")
protected RepositorySessionFactory repositorySessionFactory;
@Inject
protected RepositoryContentFactory repositoryContentFactory;
@Inject
- @Named ( value = "archivaTaskScheduler#repository" )
+ @Named(value = "archivaTaskScheduler#repository")
protected DefaultRepositoryArchivaTaskScheduler repositoryTaskScheduler;
@Context
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;