|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugins.enforcer.DependencyConvergence
public class DependencyConvergence
Constructor Summary | |
---|---|
DependencyConvergence()
|
Method Summary | |
---|---|
void |
execute(EnforcerRuleHelper helper)
This is the interface into the rule. |
java.lang.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 arg0)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependencyConvergence()
Method Detail |
---|
public void execute(EnforcerRuleHelper helper) throws EnforcerRuleException
EnforcerRule
execute
in interface EnforcerRule
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 java.lang.String getCacheId()
getCacheId
in interface EnforcerRule
public boolean isCacheable()
isCacheable
in interface EnforcerRule
true
if rule is cacheablepublic boolean isResultValid(EnforcerRule arg0)
isResultValid
in interface EnforcerRule
arg0
- the last cached instance of the rule. This is to be used by the rule to
potentially determine if the results are still valid (ie if the configuration has been overridden)
true
if the stored results are valid for the same id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |