mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
added Default annotation to fix ServletContext injection on eager loading singletons
This commit is contained in:
@@ -38,6 +38,7 @@ package sonia.scm.resources;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import sonia.scm.Default;
|
||||
import sonia.scm.plugin.PluginLoader;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
@@ -72,7 +73,7 @@ public class DevelopmentResourceManager extends AbstractResourceManager
|
||||
* @param resourceHandlers
|
||||
*/
|
||||
@Inject
|
||||
public DevelopmentResourceManager(ServletContext servletContext,
|
||||
public DevelopmentResourceManager(@Default ServletContext servletContext,
|
||||
PluginLoader pluginLoader, Set<ResourceHandler> resourceHandlers)
|
||||
{
|
||||
super(servletContext, pluginLoader, resourceHandlers);
|
||||
|
||||
Reference in New Issue
Block a user