com.atlassian.confluence.plugin.spring
Class PackageScannerConfigurationFactory

java.lang.Object
  extended by com.atlassian.confluence.plugin.spring.PackageScannerConfigurationFactory
All Implemented Interfaces:
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 Summary
PackageScannerConfigurationFactory(List<String> packageIncludes, List<String> packageExcludes)
          Deprecated. since 3.5
PackageScannerConfigurationFactory(List<String> packageIncludes, List<String> packageExcludes, Properties packageVersions)
          Create a PackageScannerConfigurationFactory with the given package includes/excludes and version mappings.
 
Method Summary
 Object getObject()
           
 Class<com.atlassian.plugin.osgi.container.PackageScannerConfiguration> getObjectType()
           
 boolean isSingleton()
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

PackageScannerConfigurationFactory

@Deprecated
public PackageScannerConfigurationFactory(List<String> packageIncludes,
                                                     List<String> packageExcludes)
Deprecated. since 3.5

Create a PackageScannerConfigurationFactory with the given package includes/excludes.

Parameters:
packageIncludes - - packages to include when scanning for package versions
packageExcludes - - packages to exclude when scanning for package versions
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

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


Copyright © 2003-2012 Atlassian. All Rights Reserved.