Package io.quarkus.arc.impl
Class InitializedInterceptor<T>
java.lang.Object
io.quarkus.arc.impl.InitializedInterceptor<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
InjectableBean<T>
,InjectableInterceptor<T>
,InjectableReferenceProvider<T>
,jakarta.enterprise.context.spi.Contextual<T>
,jakarta.enterprise.inject.spi.Bean<T>
,jakarta.enterprise.inject.spi.BeanAttributes<T>
,jakarta.enterprise.inject.spi.Interceptor<T>
- Author:
- Martin Kouba
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.arc.InjectableBean
InjectableBean.Kind
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Class<?>
The identifier is generated by the container and is unique for a specific deployment.int
A bean may have a priority assigned.Class<? extends Annotation>
getScope()
getTypes()
intercept
(jakarta.enterprise.inject.spi.InterceptionType type, T instance, jakarta.interceptor.InvocationContext ctx) boolean
intercepts
(jakarta.enterprise.inject.spi.InterceptionType type) static <I> InitializedInterceptor<I>
of
(I interceptorInstance, InjectableInterceptor<I> delegate) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.quarkus.arc.InjectableBean
getAlternativePriority, getDeclaringBean, getImplementationClass, getInjectionPoints, getName, getStereotypes, isAlternative, isDefaultBean, isSuppressed
Methods inherited from interface io.quarkus.arc.InjectableInterceptor
getKind
-
Method Details
-
of
public static <I> InitializedInterceptor<I> of(I interceptorInstance, InjectableInterceptor<I> delegate) -
getIdentifier
Description copied from interface:InjectableBean
The identifier is generated by the container and is unique for a specific deployment.- Specified by:
getIdentifier
in interfaceInjectableBean<T>
- Returns:
- the identifier for this bean
-
getScope
- Specified by:
getScope
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
- Specified by:
getScope
in interfaceInjectableBean<T>
- Returns:
- the scope
-
getTypes
- Specified by:
getTypes
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
- Specified by:
getTypes
in interfaceInjectableBean<T>
- Returns:
- the set of bean types
-
getQualifiers
- Specified by:
getQualifiers
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
- Specified by:
getQualifiers
in interfaceInjectableBean<T>
- Returns:
- the set of qualifiers
-
create
- Specified by:
create
in interfacejakarta.enterprise.context.spi.Contextual<T>
-
destroy
public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) - Specified by:
destroy
in interfacejakarta.enterprise.context.spi.Contextual<T>
- Specified by:
destroy
in interfaceInjectableBean<T>
-
get
- Specified by:
get
in interfaceInjectableReferenceProvider<T>
- Returns:
- a contextual reference
-
getInterceptorBindings
- Specified by:
getInterceptorBindings
in interfacejakarta.enterprise.inject.spi.Interceptor<T>
-
intercepts
public boolean intercepts(jakarta.enterprise.inject.spi.InterceptionType type) - Specified by:
intercepts
in interfacejakarta.enterprise.inject.spi.Interceptor<T>
-
intercept
-
getPriority
public int getPriority()Description copied from interface:InjectableBean
A bean may have a priority assigned.Class-based beans can specify the priority declaratively via
Priority
. If no priority annotation is used then a bean has the priority of value 0.This priority is used to sort the resolved beans when performing programmatic lookup via
Instance
or when injecting a list of beans by means of theAll
qualifier.- Specified by:
getPriority
in interfaceInjectableBean<T>
- Returns:
- the priority
- See Also:
-
Priority
-
getBeanClass
- Specified by:
getBeanClass
in interfacejakarta.enterprise.inject.spi.Bean<T>
-