io.quarkus.arc.runtime.InterceptorBindings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-arc Show documentation
Show all versions of quarkus-arc Show documentation
Build time CDI dependency injection
package io.quarkus.arc.runtime;
import java.lang.annotation.Annotation;
import java.util.Set;
import jakarta.interceptor.InvocationContext;
import io.quarkus.arc.AbstractAnnotationLiteral;
import io.quarkus.arc.ArcInvocationContext;
/**
*
* @see ArcInvocationContext#getInterceptorBindings()
*/
public final class InterceptorBindings {
@SuppressWarnings("unchecked")
public static Set getInterceptorBindings(InvocationContext invocationContext) {
return (Set) invocationContext.getContextData().get(ArcInvocationContext.KEY_INTERCEPTOR_BINDINGS);
}
/**
* This method is just a convenience for getting a hold of {@link AbstractAnnotationLiteral}.
* See the Javadoc of the class for an explanation of the reasons it might be used {@link Annotation}.
*/
@SuppressWarnings("unchecked")
public static Set getInterceptorBindingLiterals(InvocationContext invocationContext) {
return (Set) invocationContext.getContextData()
.get(ArcInvocationContext.KEY_INTERCEPTOR_BINDINGS);
}
}