com.atlassian.plugin.predicate
Interface ModuleDescriptorPredicate<T>

All Known Implementing Classes:
EnabledModulePredicate, ModuleDescriptorOfClassPredicate, ModuleDescriptorOfTypePredicate, ModuleOfClassPredicate

public interface ModuleDescriptorPredicate<T>

Interface used to match plugin modules according to implementation specific rules.

Since:
0.17

Method Summary
 boolean matches(ModuleDescriptor<? extends T> moduleDescriptor)
          Will match a plugin module according to implementation rules.
 

Method Detail

matches

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.


Copyright © 2011 Atlassian. All Rights Reserved.