Deprecated API


Contents
Deprecated Interfaces
com.atlassian.plugin.impl.DynamicPlugin
          since 2.2.0, use a wrapping plugin based on AbstractDelegatingPlugin instead 
com.atlassian.plugin.predicate.ModulePredicate
          since 2.2 unused 
com.atlassian.plugin.PluginManager
          since 2006-09-26 the preferred technique is to use the interfaces that this on e extends directly. 
com.atlassian.plugin.webresource.WebResourceManager.IncludeMode
          Since 2.2 
 

Deprecated Classes
com.atlassian.plugin.DefaultPluginManager
          Since 2.2.0, use DefaultPluginManager instead 
com.atlassian.plugin.util.LastModifiedHandler
          Since 2.0.0, use LastModifiedHandler 
com.atlassian.plugin.descriptors.ResourcedModuleDescriptor
          All module descriptors now have resources. Use AbstractModuleDescriptor instead. 
com.atlassian.plugin.servlet.ResourceUrlParser
          Since 2.2 
 

Deprecated Fields
com.atlassian.plugin.webresource.WebResourceManager.DELAYED_INCLUDE_MODE
          Since 2.2. Use #writeResourceTags(String, Writer) instead. 
com.atlassian.plugin.webresource.WebResourceManager.INLINE_INCLUDE_MODE
          Since 2.2. Use WebResourceManager.requireResource(String) instead. 
com.atlassian.plugin.Plugin.NAME_COMPARATOR
          since 2.2.0. This comparator only takes into account the plugin name and assumes it is not null, yet a) that constraint is not validated anywhere in plugin loading and b) the plugin could have used the i18n name, and only the application can resolve that to a name useful for comparisons. 
com.atlassian.plugin.PluginManager.PLUGIN_DESCRIPTOR_FILENAME
          since 2.2 - Please use Descriptor#FILENAME instead. 
com.atlassian.plugin.descriptors.AbstractModuleDescriptor.singleton
          since 2.2.0 
 

Deprecated Methods
com.atlassian.plugin.servlet.ResourceDownloadUtils.addCachingHeaders(HttpServletRequest, HttpServletResponse)
          Please use ResourceDownloadUtils.addPublicCachingHeaders(HttpServletRequest, HttpServletResponse) or ResourceDownloadUtils.addPrivateCachingHeaders(HttpServletRequest, HttpServletResponse) instead. 
com.atlassian.plugin.manager.DefaultPluginManager.addPlugin(PluginLoader, Plugin)
          Since 2.0.2, use #addPlugins(PluginLoader,Collection...) instead 
com.atlassian.plugin.Plugin.close()
          Since 2.2.0, use Plugin.uninstall() instead 
com.atlassian.plugin.factories.XmlDynamicPluginFactory.create(DeploymentUnit, ModuleDescriptorFactory)
          Since 2.2.0, use XmlDynamicPluginFactory.create(PluginArtifact,ModuleDescriptorFactory) instead 
com.atlassian.plugin.factories.PluginFactory.create(DeploymentUnit, ModuleDescriptorFactory)
          Since 2.2.0, use PluginFactory.create(PluginArtifact,ModuleDescriptorFactory) instead 
com.atlassian.plugin.factories.LegacyDynamicPluginFactory.create(DeploymentUnit, ModuleDescriptorFactory)
          Since 2.2.0, use LegacyDynamicPluginFactory.create(PluginArtifact,ModuleDescriptorFactory) instead 
com.atlassian.plugin.osgi.factory.OsgiBundleFactory.create(DeploymentUnit, ModuleDescriptorFactory)
          Since 2.2.0, use OsgiBundleFactory.create(PluginArtifact,ModuleDescriptorFactory) instead 
com.atlassian.plugin.osgi.factory.UnloadableStaticPluginFactory.create(DeploymentUnit, ModuleDescriptorFactory)
          Since 2.2.0, use UnloadableStaticPluginFactory.create(PluginArtifact,ModuleDescriptorFactory) instead 
com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(DeploymentUnit, ModuleDescriptorFactory)
          Since 2.2.0, use OsgiPluginFactory.create(PluginArtifact,ModuleDescriptorFactory) instead 
com.atlassian.plugin.factories.LegacyDynamicPluginFactory.createPlugin(DeploymentUnit, PluginClassLoader)
          Since 2.2.0, use LegacyDynamicPluginFactory.createPlugin(PluginArtifact,PluginClassLoader) instead 
com.atlassian.plugin.util.FileUtils.deleteDir(File)
          Since 2.0.0 
com.atlassian.plugin.impl.DefaultDynamicPlugin.getDeploymentUnit()
          Since 2.2.0, use DefaultDynamicPlugin.getPluginArtifact() instead 
com.atlassian.plugin.PluginAccessor.getDynamicPluginClass(String)
          since 0.21 this method is not used, use PluginAccessor.getPlugin(String).getClassLoader().loadClass(String) 
com.atlassian.plugin.PluginAccessor.getEnabledModuleDescriptorsByType(String)
          since 0.17, use PluginAccessor.getModuleDescriptors(com.atlassian.plugin.predicate.ModuleDescriptorPredicate) with an appropriate predicate instead. 
com.atlassian.plugin.manager.DefaultPluginManager.getEnabledModuleDescriptorsByType(String)
          since 0.17, use DefaultPluginManager.getModuleDescriptors(com.atlassian.plugin.predicate.ModuleDescriptorPredicate) with an appropriate predicate instead. 
com.atlassian.plugin.PluginAccessor.getEnabledModulesByClassAndDescriptor(Class>[], Class)
          since 0.17, use PluginAccessor.getModules(com.atlassian.plugin.predicate.ModuleDescriptorPredicate) with an appropriate predicate instead. 
com.atlassian.plugin.manager.DefaultPluginManager.getEnabledModulesByClassAndDescriptor(Class>[], Class)
          since 0.17, use DefaultPluginManager.getModules(com.atlassian.plugin.predicate.ModuleDescriptorPredicate) with an appropriate predicate instead. 
com.atlassian.plugin.PluginAccessor.getEnabledModulesByClassAndDescriptor(Class>, Class)
          since 0.17, use PluginAccessor.getModules(com.atlassian.plugin.predicate.ModuleDescriptorPredicate) with an appropriate predicate instead. 
com.atlassian.plugin.manager.DefaultPluginManager.getEnabledModulesByClassAndDescriptor(Class>, Class)
          since 0.17, use DefaultPluginManager.getModules(com.atlassian.plugin.predicate.ModuleDescriptorPredicate) with an appropriate predicate instead. 
com.atlassian.plugin.PluginInformation.getMaxVersion()
          Since 2.2.0 
com.atlassian.plugin.PluginInformation.getMinVersion()
          Since 2.2.0 
com.atlassian.plugin.PluginAccessor.getPluginResourceAsStream(String, String)
          since 0.21 this method is not used, use PluginAccessor.getPlugin(String).getClassLoader().getResourceAsStream(String) 
com.atlassian.plugin.impl.AbstractPlugin.getResourceDescriptor(String, String)
            
com.atlassian.plugin.loaders.LoaderUtils.getResourceDescriptors(Element)
          use Resources.fromXml(org.dom4j.Element) 
com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor.getServlet()
          Since 2.0.0, use ServletModuleDescriptor.getModule() 
com.atlassian.plugin.webresource.WebResourceManager.getStaticPluginResourcePrefix(ModuleDescriptor, String)
          Use #getStaticPluginResource instead 
com.atlassian.plugin.webresource.WebResourceManagerImpl.getStaticPluginResourcePrefix(ModuleDescriptor, String)
          Use WebResourceManagerImpl.getStaticPluginResource(com.atlassian.plugin.ModuleDescriptor, String) instead 
com.atlassian.plugin.Plugin.isEnabled()
          since 2.2.0, use Plugin.getPluginState() instead 
com.atlassian.plugin.impl.AbstractPlugin.isEnabled()
           
com.atlassian.plugin.descriptors.AbstractModuleDescriptor.isSingleton()
          Since 2.2.0 
com.atlassian.plugin.descriptors.AbstractModuleDescriptor.isSingletonByDefault()
          Since 2.2.0 
com.atlassian.plugin.descriptors.AbstractModuleDescriptor.loadClass(Plugin, Element)
          Since 2.1.0, use AbstractModuleDescriptor.loadClass(Plugin,String) instead 
com.atlassian.plugin.servlet.ResourceDownloadUtils.serveFileImpl(HttpServletResponse, InputStream)
          Since 2.0. Use IOUtils.copy(InputStream, OutputStream) instead. The method calling this should be responsible for closing streams and flushing if necessary. 
com.atlassian.plugin.manager.DefaultPluginManager.setDescriptorParserFactory(DescriptorParserFactory)
          Since 2.0.0.beta2 
com.atlassian.plugin.Plugin.setEnabled(boolean)
          Since 2.2.0, use Plugin.enable() or Plugin.disable() instead 
com.atlassian.plugin.impl.AbstractPlugin.setEnabled(boolean)
           
com.atlassian.plugin.webresource.WebResourceManager.setIncludeMode(WebResourceManager.IncludeMode)
          Since 2.2. 
com.atlassian.plugin.webresource.WebResourceManagerImpl.setIncludeMode(WebResourceManager.IncludeMode)
          Since 2.2. 
com.atlassian.plugin.PluginInformation.setMaxVersion(float)
          Since 2.2.0 
com.atlassian.plugin.PluginInformation.setMinVersion(float)
          Since 2.2.0 
com.atlassian.plugin.web.DefaultWebInterfaceManager.setPluginManager(PluginManager)
          since 2.2.0, use DefaultWebInterfaceManager.setPluginAccessor(PluginAccessor) instead 
com.atlassian.plugin.loaders.ScanningPluginLoader.shutDown()
          Since 2.0.0, shutdown will automatically occur when the plugin framework is shutdown 
 

Deprecated Constructors
com.atlassian.plugin.DefaultModuleDescriptorFactory()
          Since 2.2.0, use DefaultModuleDescriptorFactory.DefaultModuleDescriptorFactory(HostContainer) instead 
com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache(File, String)
            
com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager(File, PackageScannerConfiguration, HostComponentProvider, PluginEventManager)
          Since 2.2.0, use FelixOsgiContainerManager.FelixOsgiContainerManager(OsgiPersistentCache,PackageScannerConfiguration,HostComponentProvider,PluginEventManager) instead 
com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager(URL, File, PackageScannerConfiguration, HostComponentProvider, PluginEventManager)
          Since 2.2.0, use FelixOsgiContainerManager.FelixOsgiContainerManager(URL, OsgiPersistentCache,PackageScannerConfiguration,HostComponentProvider,PluginEventManager) instead 
com.atlassian.plugin.loaders.SinglePluginLoader(InputStream)
          since 2.2 use the version that passes a URL instead. Not used by the plugins system. 
com.atlassian.plugin.factories.XmlDynamicPluginFactory()
          Since 2.2.0, use XmlDynamicPluginFactory.XmlDynamicPluginFactory(String) instead 
 



Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.