mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
added Default annotation to fix ServletContext injection on eager loading singletons
This commit is contained in:
@@ -86,7 +86,6 @@ public class ErrorServlet extends HttpServlet
|
||||
*
|
||||
*
|
||||
* @param context
|
||||
* @param handler
|
||||
* @param templateEngineFactory
|
||||
*/
|
||||
@Inject
|
||||
|
||||
@@ -46,6 +46,7 @@ import com.google.inject.Inject;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import sonia.scm.Default;
|
||||
import sonia.scm.plugin.PluginLoader;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
@@ -89,7 +90,7 @@ public class MustacheTemplateEngine implements TemplateEngine
|
||||
* @param pluginLoader
|
||||
*/
|
||||
@Inject
|
||||
public MustacheTemplateEngine(ServletContext context,
|
||||
public MustacheTemplateEngine(@Default ServletContext context,
|
||||
PluginLoader pluginLoader)
|
||||
{
|
||||
factory = new ServletMustacheFactory(context, pluginLoader);
|
||||
|
||||
Reference in New Issue
Block a user