Package ca.uhn.fhir.interceptor.executor
Class InterceptorService
java.lang.Object
ca.uhn.fhir.interceptor.executor.BaseInterceptorService<Pointcut>
ca.uhn.fhir.interceptor.executor.InterceptorService
- All Implemented Interfaces:
IBaseInterceptorBroadcaster<Pointcut>
,IBaseInterceptorService<Pointcut>
,IInterceptorBroadcaster
,IInterceptorService
public class InterceptorService
extends BaseInterceptorService<Pointcut>
implements IInterceptorService, IInterceptorBroadcaster
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.uhn.fhir.interceptor.executor.BaseInterceptorService
BaseInterceptorService.BaseInvoker, BaseInterceptorService.HookDescriptor
Nested classes/interfaces inherited from interface ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster
IBaseInterceptorBroadcaster.IInvoker
-
Constructor Summary
ConstructorDescriptionConstructor which uses a default name of "default"InterceptorService
(String theName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
registerAnonymousInterceptor
(Pointcut thePointcut, int theOrder, IAnonymousInterceptor theInterceptor) void
registerAnonymousInterceptor
(Pointcut thePointcut, IAnonymousInterceptor theInterceptor) protected Optional
<BaseInterceptorService<Pointcut>.HookDescriptor> scanForHook
(Method nextMethod) Methods inherited from class ca.uhn.fhir.interceptor.executor.BaseInterceptorService
callHooks, callHooksAndReturnObject, callInvokers, findAnnotation, getAllRegisteredInterceptors, getBooleanReturnType, getInvokersForPointcut, hasHooks, haveAppropriateParams, registerAnonymousInterceptor, registerInterceptor, registerInterceptors, setName, setWarnOnInterceptorWithNoHooks, union, unregisterAllAnonymousInterceptors, unregisterAllInterceptors, unregisterInterceptor, unregisterInterceptors, unregisterInterceptorsIf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster
callHooks, callHooksAndReturnObject, getInvokersForPointcut, hasHooks, ifHasCallHooks, ifHasCallHooksAndReturnObject
Methods inherited from interface ca.uhn.fhir.interceptor.api.IBaseInterceptorService
getAllRegisteredInterceptors, registerInterceptor, registerInterceptors, unregisterAllAnonymousInterceptors, unregisterAllInterceptors, unregisterInterceptor, unregisterInterceptors, unregisterInterceptorsIf
-
Constructor Details
-
InterceptorService
public InterceptorService()Constructor which uses a default name of "default" -
InterceptorService
Constructor- Parameters:
theName
- The name for this registry (useful for troubleshooting)
-
-
Method Details
-
scanForHook
- Specified by:
scanForHook
in classBaseInterceptorService<Pointcut>
-
registerAnonymousInterceptor
public void registerAnonymousInterceptor(Pointcut thePointcut, IAnonymousInterceptor theInterceptor) - Specified by:
registerAnonymousInterceptor
in interfaceIInterceptorService
-
registerAnonymousInterceptor
public void registerAnonymousInterceptor(Pointcut thePointcut, int theOrder, IAnonymousInterceptor theInterceptor) - Specified by:
registerAnonymousInterceptor
in interfaceIInterceptorService
-