Class PackageScannerConfigurationFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.FactoryBean, org.springframework.web.context.ServletContextAware

    public class PackageScannerConfigurationFactory
    extends Object
    implements org.springframework.beans.factory.FactoryBean, org.springframework.web.context.ServletContextAware
    Factory for the PackageScannerConfiguration to provide the scanner with Confluence's version number on startup.
    • Constructor Detail

      • PackageScannerConfigurationFactory

        public PackageScannerConfigurationFactory​(List<String> packageIncludes,
                                                  List<String> packageExcludes,
                                                  Properties packageVersions)
        Create a PackageScannerConfigurationFactory with the given package includes/excludes and version mappings.
        Parameters:
        packageIncludes - - packages to include when scanning for package versions
        packageExcludes - - packages to exclude when scanning for package versions
        packageVersions - - explicit mapping of packages to versions to use.
    • Method Detail

      • getObject

        public Object getObject()
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean
      • getObjectType

        public Class<com.atlassian.plugin.osgi.container.PackageScannerConfiguration> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean
      • setServletContext

        public void setServletContext​(javax.servlet.ServletContext servletContext)
        Specified by:
        setServletContext in interface org.springframework.web.context.ServletContextAware