Class NullPluginAccessor

  • All Implemented Interfaces:
    com.atlassian.plugin.PluginAccessor

    public class NullPluginAccessor
    extends Object
    implements com.atlassian.plugin.PluginAccessor
    No-op plugin accessor that can be substituted when the plugin system is unavailable.
    • Constructor Detail

      • NullPluginAccessor

        public NullPluginAccessor()
    • Method Detail

      • getPlugins

        public Collection<com.atlassian.plugin.Plugin> getPlugins()
        Specified by:
        getPlugins in interface com.atlassian.plugin.PluginAccessor
      • getPlugins

        @Deprecated
        public Collection<com.atlassian.plugin.Plugin> getPlugins​(com.atlassian.plugin.predicate.PluginPredicate pluginPredicate)
        Deprecated.
        since 7.0.1
        Specified by:
        getPlugins in interface com.atlassian.plugin.PluginAccessor
      • getPlugins

        public Collection<com.atlassian.plugin.Plugin> getPlugins​(Predicate<com.atlassian.plugin.Plugin> pluginPredicate)
        Specified by:
        getPlugins in interface com.atlassian.plugin.PluginAccessor
      • getEnabledPlugins

        public Collection<com.atlassian.plugin.Plugin> getEnabledPlugins()
        Specified by:
        getEnabledPlugins in interface com.atlassian.plugin.PluginAccessor
      • getModules

        @Deprecated
        public <M> Collection<M> getModules​(com.atlassian.plugin.predicate.ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
        Deprecated.
        since 7.0.1
        Specified by:
        getModules in interface com.atlassian.plugin.PluginAccessor
      • getModuleDescriptors

        @Deprecated
        public <M> Collection<com.atlassian.plugin.ModuleDescriptor<M>> getModuleDescriptors​(com.atlassian.plugin.predicate.ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
        Deprecated.
        since 7.0.1
        Specified by:
        getModuleDescriptors in interface com.atlassian.plugin.PluginAccessor
      • getModules

        public <M> Collection<M> getModules​(Predicate<com.atlassian.plugin.ModuleDescriptor<M>> moduleDescriptorPredicate)
        Specified by:
        getModules in interface com.atlassian.plugin.PluginAccessor
      • getModuleDescriptors

        public <M> Collection<com.atlassian.plugin.ModuleDescriptor<M>> getModuleDescriptors​(Predicate<com.atlassian.plugin.ModuleDescriptor<M>> moduleDescriptorPredicate)
        Specified by:
        getModuleDescriptors in interface com.atlassian.plugin.PluginAccessor
      • getPluginModule

        public com.atlassian.plugin.ModuleDescriptor<?> getPluginModule​(String completeKey)
        Specified by:
        getPluginModule in interface com.atlassian.plugin.PluginAccessor
      • getEnabledPluginModule

        public com.atlassian.plugin.ModuleDescriptor<?> getEnabledPluginModule​(String completeKey)
        Specified by:
        getEnabledPluginModule in interface com.atlassian.plugin.PluginAccessor
      • isPluginModuleEnabled

        public boolean isPluginModuleEnabled​(String completeKey)
        Specified by:
        isPluginModuleEnabled in interface com.atlassian.plugin.PluginAccessor
      • getEnabledModulesByClass

        public <M> List<M> getEnabledModulesByClass​(Class<M> moduleClass)
        Specified by:
        getEnabledModulesByClass in interface com.atlassian.plugin.PluginAccessor
      • getEnabledModuleDescriptorsByClass

        public <D extends com.atlassian.plugin.ModuleDescriptor<?>> List<D> getEnabledModuleDescriptorsByClass​(Class<D> descriptorClazz)
        Specified by:
        getEnabledModuleDescriptorsByClass in interface com.atlassian.plugin.PluginAccessor
      • getDynamicResourceAsStream

        public InputStream getDynamicResourceAsStream​(String resourcePath)
        Specified by:
        getDynamicResourceAsStream in interface com.atlassian.plugin.PluginAccessor
      • getClassLoader

        public ClassLoader getClassLoader()
        Specified by:
        getClassLoader in interface com.atlassian.plugin.PluginAccessor
      • isSystemPlugin

        public boolean isSystemPlugin​(String key)
        Specified by:
        isSystemPlugin in interface com.atlassian.plugin.PluginAccessor
      • getPluginRestartState

        public com.atlassian.plugin.PluginRestartState getPluginRestartState​(String key)
        Specified by:
        getPluginRestartState in interface com.atlassian.plugin.PluginAccessor
      • getDynamicModules

        public Iterable<com.atlassian.plugin.ModuleDescriptor<?>> getDynamicModules​(com.atlassian.plugin.Plugin plugin)
        Specified by:
        getDynamicModules in interface com.atlassian.plugin.PluginAccessor