Class PluginInternalPackageDetector
java.lang.Object
com.atlassian.plugin.osgi.hook.dmz.packages.PluginInternalPackageDetector
- All Implemented Interfaces:
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPluginInternalPackageDetector(InternalPackageDetector inheritedInternalPackageDetector) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDeprecatedPackage(org.osgi.framework.wiring.BundleCapability pluginExport) Checks if package should be treated as deprecated by the DMZ mechanismbooleanisInternalPackage(org.osgi.framework.wiring.BundleCapability pluginExport) Checks if package should be treated as internal and hidden behind DMZ
-
Field Details
-
ATTR_ATLASSIAN_ACCESS
- See Also:
-
ATLASSIAN_ACCESS_PUBLIC
- See Also:
-
ATLASSIAN_ACCESS_DEPRECATED
- See Also:
-
ATLASSIAN_ACCESS_INTERNAL
- See Also:
-
ATLASSIAN_ACCESS_INHERITED
- See Also:
-
ATLASSIAN_ACCESS_DEFAULT
- See Also:
-
ATLASSIAN_ACCESS_ALLOWED_VALUES
-
-
Constructor Details
-
PluginInternalPackageDetector
-
-
Method Details
-
isInternalPackage
public boolean isInternalPackage(org.osgi.framework.wiring.BundleCapability pluginExport) Description copied from interface:InternalPackageDetectorChecks if package should be treated as internal and hidden behind DMZ- Specified by:
isInternalPackagein interfaceInternalPackageDetector- Parameters:
pluginExport- represents exported package- Returns:
- if package is internal
-
isDeprecatedPackage
public boolean isDeprecatedPackage(org.osgi.framework.wiring.BundleCapability pluginExport) Description copied from interface:InternalPackageDetectorChecks if package should be treated as deprecated by the DMZ mechanism- Specified by:
isDeprecatedPackagein interfaceInternalPackageDetector- Parameters:
pluginExport- represents exported package- Returns:
- if package is deprecated
-