package com.atlassian.plugin.spring;

import com.atlassian.plugin.osgi.container.impl.DefaultPackageScannerConfiguration;
import org.springframework.web.context.ServletContextAware;

import javax.servlet.ServletContext;

/**
 * Spring-aware extension of the package scanner configuration that instructs spring to inject the servlet context
 */
public class SpringAwarePackageScannerConfiguration extends DefaultPackageScannerConfiguration implements ServletContextAware
{
    @Override
    public void setServletContext(ServletContext servletContext)
    {
        super.setServletContext(servletContext);
    }
}

@@ -465,16 +465,209 @@
 Aware%0A%7B%0A
+    public SpringAwarePackageScannerConfiguration()%0A    %7B%0A        super();%0A    %7D%0A%0A    public SpringAwarePackageScannerConfiguration(String hostVersion)%0A    %7B%0A        super(hostVersion);%0A    %7D%0A%0A
     @Ove

Make sure Spring config provides both constructors