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);
    }
}

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
{
    public SpringAwarePackageScannerConfiguration()
    {
        super();
    }

    public SpringAwarePackageScannerConfiguration(String hostVersion)
    {
        super(hostVersion);
    }

    @Override
    public void setServletContext(ServletContext servletContext)
    {
        super.setServletContext(servletContext);
    }
}

Make sure Spring config provides both constructors
Make sure Spring config provides both constructors

git-svn-id: 3d1f0b8d955af71bf8e09c956c180519124e4717@26448 2c54a935-e501-0410-bc05-97a93f6bca70
