Class ExportTypeBasedInternalPackageDetector

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

public class ExportTypeBasedInternalPackageDetector extends Object implements InternalPackageDetector
This is a top level detector that delegates to other detectors based on the type of "Bundle" exporting the package.
  • exports from "System Bundle" are checked with the config patterns
  • exports from "internal Plugins" are checked with use of `atlassian-access` feature
  • exports from "external Plugins" are never internal or deprecated
  • Constructor Details

  • Method Details

    • isInternalPackage

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

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