public class DependencyConvergence extends Object implements EnforcerRule
Constructor and Description |
---|
DependencyConvergence() |
Modifier and Type | Method and Description |
---|---|
void |
execute(EnforcerRuleHelper helper) |
String |
getCacheId()
If your rule is cacheable, you must return a unique id when parameters or conditions change that would cause the
result to be different.
|
boolean |
isCacheable()
This tells the system if the results are cacheable at all.
|
boolean |
isResultValid(EnforcerRule rule)
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.
|
void |
setUniqueVersions(boolean uniqueVersions) |
public DependencyConvergence()
public void setUniqueVersions(boolean uniqueVersions)
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
execute
in interface EnforcerRule
EnforcerRuleException
public String getCacheId()
getCacheId
in interface EnforcerRule
public boolean isCacheable()
isCacheable
in interface EnforcerRule
public boolean isResultValid(EnforcerRule rule)
isResultValid
in interface EnforcerRule
rule
- Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.