Class MongoManagedEntityAdvice<E>

  • Type Parameters:
    E - Entity type
    All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    public class MongoManagedEntityAdvice<E>
    extends Object
    implements org.aopalliance.intercept.MethodInterceptor
    A method interceptor that delegates the methods to the right advice
    • Constructor Detail

      • MongoManagedEntityAdvice

        public MongoManagedEntityAdvice​(E entity,
                                        org.springframework.data.mongodb.core.MongoTemplate mongoTemplate,
                                        String collectionName)
    • Method Detail

      • invoke

        public Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)
                      throws Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        Throwable