public abstract class AbstractNonCacheableEnforcerRule extends AbstractStandardEnforcerRule
Constructor and Description |
---|
AbstractNonCacheableEnforcerRule() |
Modifier and Type | Method and Description |
---|---|
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.
|
getLevel, getMessage, setLevel, setMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public AbstractNonCacheableEnforcerRule()
public 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.Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.