public class

ModuleOfClassPredicate

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

Class Overview

A ModuleDescriptorPredicate that matches modules that are is an instance of the given Class.

Summary

Public Constructors
ModuleOfClassPredicate(Class<T> moduleClass)
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 ModuleOfClassPredicate (Class<T> moduleClass)

Throws
IllegalArgumentException if the moduleClass 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.