|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule
org.apache.maven.plugins.enforcer.AbstractNonCacheableEnforcerRule
public abstract class AbstractNonCacheableEnforcerRule
The Class AbstractNonCacheableEnforcerRule. This is to be used by rules that don't need caching...it saves implementing a bunch of methods.
Field Summary |
---|
Fields inherited from class org.apache.maven.plugins.enforcer.AbstractStandardEnforcerRule |
---|
message |
Constructor Summary | |
---|---|
AbstractNonCacheableEnforcerRule()
|
Method Summary | |
---|---|
java.lang.String |
getCacheId()
If the rule is to be cached, this id is used as part of the key. |
boolean |
isCacheable()
This method tells the enforcer if the rule results may be cached. |
boolean |
isResultValid(EnforcerRule cachedRule)
Checks if cached result is valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.maven.enforcer.rule.api.EnforcerRule |
---|
execute |
Constructor Detail |
---|
public AbstractNonCacheableEnforcerRule()
Method Detail |
---|
public java.lang.String getCacheId()
EnforcerRule
public boolean isCacheable()
EnforcerRule
true
if rule is cacheablepublic boolean isResultValid(EnforcerRule cachedRule)
EnforcerRule
cachedRule
- 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 |