public class NullPluginAccessor extends Object implements com.atlassian.plugin.PluginAccessor
Constructor and Description |
---|
NullPluginAccessor() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
Iterable<com.atlassian.plugin.ModuleDescriptor<?>> |
getDynamicModules(com.atlassian.plugin.Plugin plugin) |
InputStream |
getDynamicResourceAsStream(String resourcePath) |
<D extends com.atlassian.plugin.ModuleDescriptor<?>> |
getEnabledModuleDescriptorsByClass(Class<D> descriptorClazz) |
<M> List<M> |
getEnabledModulesByClass(Class<M> moduleClass) |
com.atlassian.plugin.Plugin |
getEnabledPlugin(String pluginKey) |
com.atlassian.plugin.ModuleDescriptor<?> |
getEnabledPluginModule(String completeKey) |
Collection<com.atlassian.plugin.Plugin> |
getEnabledPlugins() |
<M> Collection<com.atlassian.plugin.ModuleDescriptor<M>> |
getModuleDescriptors(com.atlassian.plugin.predicate.ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
Deprecated.
since 7.0.1
|
<M> Collection<com.atlassian.plugin.ModuleDescriptor<M>> |
getModuleDescriptors(Predicate<com.atlassian.plugin.ModuleDescriptor<M>> moduleDescriptorPredicate) |
<M> Collection<M> |
getModules(com.atlassian.plugin.predicate.ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
Deprecated.
since 7.0.1
|
<M> Collection<M> |
getModules(Predicate<com.atlassian.plugin.ModuleDescriptor<M>> moduleDescriptorPredicate) |
com.atlassian.plugin.Plugin |
getPlugin(String key) |
com.atlassian.plugin.ModuleDescriptor<?> |
getPluginModule(String completeKey) |
com.atlassian.plugin.PluginRestartState |
getPluginRestartState(String key) |
Collection<com.atlassian.plugin.Plugin> |
getPlugins() |
Collection<com.atlassian.plugin.Plugin> |
getPlugins(com.atlassian.plugin.predicate.PluginPredicate pluginPredicate)
Deprecated.
since 7.0.1
|
Collection<com.atlassian.plugin.Plugin> |
getPlugins(Predicate<com.atlassian.plugin.Plugin> pluginPredicate) |
boolean |
isPluginEnabled(String key) |
boolean |
isPluginModuleEnabled(String completeKey) |
boolean |
isSystemPlugin(String key) |
public Collection<com.atlassian.plugin.Plugin> getPlugins()
getPlugins
in interface com.atlassian.plugin.PluginAccessor
@Deprecated public Collection<com.atlassian.plugin.Plugin> getPlugins(com.atlassian.plugin.predicate.PluginPredicate pluginPredicate)
getPlugins
in interface com.atlassian.plugin.PluginAccessor
public Collection<com.atlassian.plugin.Plugin> getPlugins(Predicate<com.atlassian.plugin.Plugin> pluginPredicate)
getPlugins
in interface com.atlassian.plugin.PluginAccessor
public Collection<com.atlassian.plugin.Plugin> getEnabledPlugins()
getEnabledPlugins
in interface com.atlassian.plugin.PluginAccessor
@Deprecated public <M> Collection<M> getModules(com.atlassian.plugin.predicate.ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
getModules
in interface com.atlassian.plugin.PluginAccessor
@Deprecated public <M> Collection<com.atlassian.plugin.ModuleDescriptor<M>> getModuleDescriptors(com.atlassian.plugin.predicate.ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
getModuleDescriptors
in interface com.atlassian.plugin.PluginAccessor
public <M> Collection<M> getModules(Predicate<com.atlassian.plugin.ModuleDescriptor<M>> moduleDescriptorPredicate)
getModules
in interface com.atlassian.plugin.PluginAccessor
public <M> Collection<com.atlassian.plugin.ModuleDescriptor<M>> getModuleDescriptors(Predicate<com.atlassian.plugin.ModuleDescriptor<M>> moduleDescriptorPredicate)
getModuleDescriptors
in interface com.atlassian.plugin.PluginAccessor
public com.atlassian.plugin.Plugin getPlugin(String key) throws IllegalArgumentException
getPlugin
in interface com.atlassian.plugin.PluginAccessor
IllegalArgumentException
public com.atlassian.plugin.Plugin getEnabledPlugin(String pluginKey) throws IllegalArgumentException
getEnabledPlugin
in interface com.atlassian.plugin.PluginAccessor
IllegalArgumentException
public com.atlassian.plugin.ModuleDescriptor<?> getPluginModule(String completeKey)
getPluginModule
in interface com.atlassian.plugin.PluginAccessor
public com.atlassian.plugin.ModuleDescriptor<?> getEnabledPluginModule(String completeKey)
getEnabledPluginModule
in interface com.atlassian.plugin.PluginAccessor
public boolean isPluginEnabled(String key) throws IllegalArgumentException
isPluginEnabled
in interface com.atlassian.plugin.PluginAccessor
IllegalArgumentException
public boolean isPluginModuleEnabled(String completeKey)
isPluginModuleEnabled
in interface com.atlassian.plugin.PluginAccessor
public <M> List<M> getEnabledModulesByClass(Class<M> moduleClass)
getEnabledModulesByClass
in interface com.atlassian.plugin.PluginAccessor
public <D extends com.atlassian.plugin.ModuleDescriptor<?>> List<D> getEnabledModuleDescriptorsByClass(Class<D> descriptorClazz)
getEnabledModuleDescriptorsByClass
in interface com.atlassian.plugin.PluginAccessor
public InputStream getDynamicResourceAsStream(String resourcePath)
getDynamicResourceAsStream
in interface com.atlassian.plugin.PluginAccessor
public ClassLoader getClassLoader()
getClassLoader
in interface com.atlassian.plugin.PluginAccessor
public boolean isSystemPlugin(String key)
isSystemPlugin
in interface com.atlassian.plugin.PluginAccessor
public com.atlassian.plugin.PluginRestartState getPluginRestartState(String key)
getPluginRestartState
in interface com.atlassian.plugin.PluginAccessor
public Iterable<com.atlassian.plugin.ModuleDescriptor<?>> getDynamicModules(com.atlassian.plugin.Plugin plugin)
getDynamicModules
in interface com.atlassian.plugin.PluginAccessor
Copyright © 2003–2019 Atlassian. All rights reserved.