Class DefaultExistsByReactiveInterceptor
java.lang.Object
io.micronaut.data.runtime.intercept.AbstractQueryInterceptor<Object,Object>
io.micronaut.data.runtime.intercept.reactive.AbstractReactiveInterceptor<Object,Object>
io.micronaut.data.runtime.intercept.reactive.AbstractPublisherInterceptor
io.micronaut.data.runtime.intercept.reactive.DefaultExistsByReactiveInterceptor
- All Implemented Interfaces:
DataInterceptor<Object,Object>, ExistsByReactiveInterceptor<Object, Object>
public class DefaultExistsByReactiveInterceptor
extends AbstractPublisherInterceptor
implements ExistsByReactiveInterceptor<Object,Object>
Default implementation of
ExistsByReactiveInterceptor.- Since:
- 1.0.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from class AbstractReactiveInterceptor
reactiveOperationsFields inherited from class AbstractQueryInterceptor
conversionService, operations, preparedQueryResolver -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultExistsByReactiveInterceptor(@NonNull RepositoryOperations operations) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<?> interceptPublisher(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, Object> context) Intercept publisher.Methods inherited from class AbstractPublisherInterceptor
interceptMethods inherited from class AbstractReactiveInterceptor
countMethods inherited from class AbstractQueryInterceptor
convertOne, convertOne, count, findEntitiesParameter, findEntityParameter, getDeleteAllBatchOperation, getDeleteBatchOperation, getDeleteBatchOperation, getDeleteOperation, getDeleteReturningBatchOperation, getDeleteReturningOperation, getEntitiesParameter, getEntityParameter, getInsertBatchOperation, getInsertBatchOperation, getInsertOperation, getInsertOperation, getLimit, getOffset, getPageable, getPageableInRole, getPagedQuery, getParameterInRole, getParameterInRole, getParametersInRole, getParametersInRole, getParameterValueMap, getRequiredEntity, getRequiredParameterInRole, getRequiredRootEntity, getReturnType, getUpdateAllBatchOperation, getUpdateOperation, getUpdateOperation, hasReturnTypeInRole, instantiateEntity, isNumber, prepareCountQuery, prepareQuery, validateNullArgumentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataInterceptor
intercept
-
Constructor Details
-
DefaultExistsByReactiveInterceptor
Default constructor.- Parameters:
operations- The operations
-
-
Method Details
-
interceptPublisher
public org.reactivestreams.Publisher<?> interceptPublisher(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object, Object> context) Description copied from class:AbstractPublisherInterceptorIntercept publisher.- Specified by:
interceptPublisherin classAbstractPublisherInterceptor- Parameters:
methodKey- The method keycontext- The context- Returns:
- the result publisher
-