public class RequireFilesSize extends AbstractRequireFiles
message
Constructor and Description |
---|
RequireFilesSize() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule.
|
boolean |
isCacheable()
This tells the system if the results are cacheable at all.
|
boolean |
isResultValid(EnforcerRule cachedRule)
If the rule is cacheable and the same id is found in the cache, the stored results are passed to this method to
allow double checking of the results.
|
getCacheId
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
execute
in interface EnforcerRule
execute
in class AbstractRequireFiles
helper
- The helper provides access to the log, MavenSession and has
helpers to get common components. It is also able to lookup components
by class name.EnforcerRuleException
- the enforcer rule exceptionpublic boolean isCacheable()
AbstractRequireFiles
isCacheable
in interface EnforcerRule
isCacheable
in class AbstractRequireFiles
true
if rule is cacheablepublic boolean isResultValid(EnforcerRule cachedRule)
AbstractRequireFiles
isResultValid
in interface EnforcerRule
isResultValid
in class AbstractRequireFiles
cachedRule
- the cached ruletrue
if the stored results are valid for the same id.Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.