Class AbstractLRUApplicableInterceptor
- java.lang.Object
- 
- jadex.bridge.service.component.interceptors.AbstractApplicableInterceptor
- 
- jadex.bridge.service.component.interceptors.ComponentThreadInterceptor
- 
- jadex.bridge.service.component.interceptors.AbstractLRUApplicableInterceptor
 
 
 
- 
- All Implemented Interfaces:
- IServiceInvocationInterceptor
 - Direct Known Subclasses:
- AuthenticationInterceptor,- PrePostConditionInterceptor
 
 public abstract class AbstractLRUApplicableInterceptor extends ComponentThreadInterceptor Abstract interceptor class that uses a LRU for caching applicable states of invocations for subsequent calls. Should be used whenever isApplicable method is expensive.
- 
- 
Field SummaryFields Modifier and Type Field Description protected LRU<java.lang.reflect.Method,java.lang.Boolean>applicablesThe LRU.- 
Fields inherited from class jadex.bridge.service.component.interceptors.ComponentThreadInterceptoria
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractLRUApplicableInterceptor(IInternalAccess ia)Create a new AbstractLRUApplicableInterceptor.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleancustomIsApplicable(ServiceInvocationContext context)Replacement method for isApplicable.booleanisApplicable(ServiceInvocationContext context)Test if the interceptor is applicable.- 
Methods inherited from class jadex.bridge.service.component.interceptors.ComponentThreadInterceptorgetComponent
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.bridge.service.component.IServiceInvocationInterceptorexecute
 
- 
 
- 
- 
- 
Field Detail- 
applicablesprotected LRU<java.lang.reflect.Method,java.lang.Boolean> applicables The LRU.
 
- 
 - 
Constructor Detail- 
AbstractLRUApplicableInterceptorpublic AbstractLRUApplicableInterceptor(IInternalAccess ia) Create a new AbstractLRUApplicableInterceptor.
 
- 
 - 
Method Detail- 
isApplicablepublic final boolean isApplicable(ServiceInvocationContext context) Test if the interceptor is applicable.- Specified by:
- isApplicablein interface- IServiceInvocationInterceptor
- Overrides:
- isApplicablein class- ComponentThreadInterceptor
- Returns:
- True, if applicable.
 
 - 
customIsApplicablepublic abstract boolean customIsApplicable(ServiceInvocationContext context) Replacement method for isApplicable.
 
- 
 
-