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>
public class InitializedInterceptor<T> extends Object implements InjectableInterceptor<T>
- Author:
- Martin Kouba
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.quarkus.arc.InjectableBean
InjectableBean.Kind
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
void
destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
T
get(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
Class<?>
getBeanClass()
String
getIdentifier()
The identifier is generated by the container and is unique for a specific deployment.Set<Annotation>
getInterceptorBindings()
int
getPriority()
A bean may have a priority assigned.Set<Annotation>
getQualifiers()
Class<? extends Annotation>
getScope()
Set<Type>
getTypes()
Object
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 Detail
-
of
public static <I> InitializedInterceptor<I> of(I interceptorInstance, InjectableInterceptor<I> delegate)
-
getIdentifier
public String 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
public Class<? extends Annotation> getScope()
- Specified by:
getScope
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
- Specified by:
getScope
in interfaceInjectableBean<T>
- Returns:
- the scope
-
getTypes
public Set<Type> getTypes()
- Specified by:
getTypes
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
- Specified by:
getTypes
in interfaceInjectableBean<T>
- Returns:
- the set of bean types
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiers
in interfacejakarta.enterprise.inject.spi.BeanAttributes<T>
- Specified by:
getQualifiers
in interfaceInjectableBean<T>
- Returns:
- the set of qualifiers
-
create
public T create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
- 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
public T get(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
- Specified by:
get
in interfaceInjectableReferenceProvider<T>
- Returns:
- a contextual reference
-
getInterceptorBindings
public Set<Annotation> 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
public Object intercept(jakarta.enterprise.inject.spi.InterceptionType type, T instance, jakarta.interceptor.InvocationContext ctx) throws Exception
-
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
-
-