Class PluginInternalPackageDetector

java.lang.Object
com.atlassian.plugin.osgi.hook.dmz.packages.PluginInternalPackageDetector
All Implemented Interfaces:
InternalPackageDetector

public class PluginInternalPackageDetector extends Object implements InternalPackageDetector
Internal package detector that implements atlassian-access feature. OSGi exports can define property atlassian-access to control the DMZ mechanism. Possible values are:
  • public - package should be available for all plugins
  • internal - package should be available only for internal plugins
  • deprecated - package will be internal in the next major version
  • inherited - package should be examined with the default mechanism
  • Field Details

  • Constructor Details

    • PluginInternalPackageDetector

      public PluginInternalPackageDetector(InternalPackageDetector inheritedInternalPackageDetector)
  • Method Details

    • isInternalPackage

      public boolean isInternalPackage(org.osgi.framework.wiring.BundleCapability pluginExport)
      Description copied from interface: InternalPackageDetector
      Checks if package should be treated as internal and hidden behind DMZ
      Specified by:
      isInternalPackage in interface InternalPackageDetector
      Parameters:
      pluginExport - represents exported package
      Returns:
      if package is internal
    • isDeprecatedPackage

      public boolean isDeprecatedPackage(org.osgi.framework.wiring.BundleCapability pluginExport)
      Description copied from interface: InternalPackageDetector
      Checks if package should be treated as deprecated by the DMZ mechanism
      Specified by:
      isDeprecatedPackage in interface InternalPackageDetector
      Parameters:
      pluginExport - represents exported package
      Returns:
      if package is deprecated