public abstract class AbstractNonCacheableEnforcerRule extends AbstractStandardEnforcerRule
message| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic String getCacheId()
EnforcerRulepublic boolean isCacheable()
EnforcerRuletrue if rule is cacheablepublic boolean isResultValid(EnforcerRule cachedRule)
EnforcerRulecachedRule - 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-2016 The Apache Software Foundation. All Rights Reserved.