Class PluginTypeDetector

java.lang.Object
com.atlassian.plugin.osgi.hook.dmz.PluginTypeDetector

public class PluginTypeDetector extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    PluginTypeDetector(Set<String> bundledPluginKeys)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getPluginKeyOrSymbolicName(org.osgi.framework.Bundle bundle)
    Tried to use API: String pluginKey = OsgiHeaderUtil.getPluginKey(importingPlugin) but for some reason if OsgiPlugin.ATLASSIAN_PLUGIN_KEY is not available, util returns symbolic name with version, examples: org.eclipse.gemini.blueprint.core-3.0.0.M01 org.apache.servicemix.bundles.spring-core-5.3.26.1 Plugin key should not contain version.
    boolean
    isInternalPlugin(org.osgi.framework.Bundle bundle)
     
    boolean
    isSystemBundle(org.osgi.framework.Bundle bundle)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PluginTypeDetector

      public PluginTypeDetector(Set<String> bundledPluginKeys)
      Since:
      7.3
  • Method Details

    • isInternalPlugin

      public boolean isInternalPlugin(org.osgi.framework.Bundle bundle)
    • isSystemBundle

      public boolean isSystemBundle(org.osgi.framework.Bundle bundle)
    • getPluginKeyOrSymbolicName

      public String getPluginKeyOrSymbolicName(org.osgi.framework.Bundle bundle)
      Tried to use API: String pluginKey = OsgiHeaderUtil.getPluginKey(importingPlugin) but for some reason if OsgiPlugin.ATLASSIAN_PLUGIN_KEY is not available, util returns symbolic name with version, examples: org.eclipse.gemini.blueprint.core-3.0.0.M01 org.apache.servicemix.bundles.spring-core-5.3.26.1 Plugin key should not contain version.