public class

EnabledModulePredicate

extends Object
implements ModuleDescriptorPredicate<T>
java.lang.Object
   ↳ com.atlassian.plugin.predicate.EnabledModulePredicate<T>

Class Overview

A ModuleDescriptorPredicate that matches enabled modules.

Summary

Public Constructors
EnabledModulePredicate(PluginAccessor pluginAccessor)
Public Methods
boolean matches(ModuleDescriptor<? extends T> moduleDescriptor)

Will match a plugin module according to implementation rules.

[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.predicate.ModuleDescriptorPredicate

Public Constructors

public EnabledModulePredicate (PluginAccessor pluginAccessor)

Throws
IllegalArgumentException if pluginAccessor is null

Public Methods

public boolean matches (ModuleDescriptor<? extends T> moduleDescriptor)

Will match a plugin module according to implementation rules.

This method must not change the state of the module nor its plugin .

Parameters
moduleDescriptor the ModuleDescriptor to test against.
Returns
  • true if the module matches the predicate, false otherwise.