Class AlwaysFalseInternalPackageDetector
java.lang.Object
com.atlassian.plugin.osgi.hook.dmz.packages.AlwaysFalseInternalPackageDetector
- All Implemented Interfaces:
InternalPackageDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDeprecatedPackage(org.osgi.framework.wiring.BundleCapability capability) Checks if package should be treated as deprecated by the DMZ mechanismbooleanisInternalPackage(org.osgi.framework.wiring.BundleCapability capability) Checks if package should be treated as internal and hidden behind DMZ
-
Constructor Details
-
AlwaysFalseInternalPackageDetector
public AlwaysFalseInternalPackageDetector()
-
-
Method Details
-
isInternalPackage
public boolean isInternalPackage(org.osgi.framework.wiring.BundleCapability capability) Description copied from interface:InternalPackageDetectorChecks if package should be treated as internal and hidden behind DMZ- Specified by:
isInternalPackagein interfaceInternalPackageDetector- Parameters:
capability- represents exported package- Returns:
- if package is internal
-
isDeprecatedPackage
public boolean isDeprecatedPackage(org.osgi.framework.wiring.BundleCapability capability) Description copied from interface:InternalPackageDetectorChecks if package should be treated as deprecated by the DMZ mechanism- Specified by:
isDeprecatedPackagein interfaceInternalPackageDetector- Parameters:
capability- represents exported package- Returns:
- if package is deprecated
-