com.atlassian.plugin.predicate
Class ModuleOfClassPredicate<T>
java.lang.Object
com.atlassian.plugin.predicate.ModuleOfClassPredicate<T>
- All Implemented Interfaces:
- ModuleDescriptorPredicate<T>
public class ModuleOfClassPredicate<T>
- extends Object
- implements ModuleDescriptorPredicate<T>
A ModuleDescriptorPredicate that matches modules that are is an instance of the given Class.
|
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 |
ModuleOfClassPredicate
public ModuleOfClassPredicate(Class<T> moduleClass)
- Throws:
IllegalArgumentException - if the moduleClass 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 © 2010 Atlassian. All Rights Reserved.