diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/IInterceptorService.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/IInterceptorService.java index 7cae659a7d2..4797f2ef1c2 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/IInterceptorService.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/IInterceptorService.java @@ -67,8 +67,9 @@ public interface IInterceptorService extends IInterceptorBroadcaster { * Unregister an interceptor. This method has no effect if the given interceptor is not already registered. * * @param theInterceptor The interceptor to unregister + * @return Returns true if the interceptor was found and removed */ - void unregisterInterceptor(Object theInterceptor); + boolean unregisterInterceptor(Object theInterceptor); void registerAnonymousInterceptor(Pointcut thePointcut, IAnonymousInterceptor theInterceptor); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java index fcac3de9935..e31009e9a26 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/interceptor/api/Pointcut.java @@ -1166,9 +1166,14 @@ public enum Pointcut { /** * Invoked before a resource is about to be expunged via the $expunge operation. *

+ * Hooks will be passed a reference to a counter containing the current number of records that have been deleted. + * If the hook deletes any records, the hook is expected to increment this counter by the number of records deleted. + *

+ *

* Hooks may accept the following parameters: *

*