com.atlassian.plugin.predicate
Class EnabledModulePredicate<T>
java.lang.Object
com.atlassian.plugin.predicate.EnabledModulePredicate<T>
- All Implemented Interfaces:
- ModuleDescriptorPredicate<T>
public class EnabledModulePredicate<T>
- extends Object
- implements ModuleDescriptorPredicate<T>
A ModuleDescriptorPredicate that matches enabled modules.
|
Method Summary |
boolean |
matches(ModuleDescriptor<? extends T> moduleDescriptor)
Will match a plugin module according to implementation rules. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnabledModulePredicate
public EnabledModulePredicate(PluginAccessor pluginAccessor)
- Throws:
IllegalArgumentException - if pluginAccessor is null
matches
public boolean matches(ModuleDescriptor<? extends T> moduleDescriptor)
- Description copied from interface:
ModuleDescriptorPredicate
Will match a plugin module according to implementation rules.
This method must not change the state of the module nor its plugin .
- Specified by:
matches in interface ModuleDescriptorPredicate<T>
- Parameters:
moduleDescriptor - the ModuleDescriptor to test against.
- Returns:
true if the module matches the predicate, false otherwise.
Copyright © 2011 Atlassian. All Rights Reserved.