All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.rsqn.cacheservice.interceptors.InvalidatingInterceptor Maven / Gradle / Ivy

package tech.rsqn.cacheservice.interceptors;

import tech.rsqn.cacheservice.annotations.InvalidatingOperation;

import org.aopalliance.intercept.MethodInvocation;


public class InvalidatingInterceptor extends AbstractInterceptor {
    public Object invoke(MethodInvocation invocation) throws Throwable {
        InterceptorMetadata meta = InterceptorMetadata.with(this,
                resolveTarget(invocation, InvalidatingOperation.class));

        return cacheService.aroundInvalidateMethodInvocation(invocation, meta);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy