io.quarkus.cache.runtime.CacheInterceptionContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-cache Show documentation
Show all versions of quarkus-cache Show documentation
Enable application data caching in CDI beans
package io.quarkus.cache.runtime;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
// this should be but that leads to type pollution
public class CacheInterceptionContext {
private final List interceptorBindings;
private final List cacheKeyParameterPositions;
public CacheInterceptionContext(List interceptorBindings, List cacheKeyParameterPositions) {
Objects.requireNonNull(interceptorBindings);
Objects.requireNonNull(cacheKeyParameterPositions);
this.interceptorBindings = Collections.unmodifiableList(interceptorBindings);
this.cacheKeyParameterPositions = Collections.unmodifiableList(cacheKeyParameterPositions);
}
public List getInterceptorBindings() {
return interceptorBindings;
}
public List getCacheKeyParameterPositions() {
return cacheKeyParameterPositions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy