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>,javax.enterprise.context.spi.Contextual<T>,javax.enterprise.inject.spi.Bean<T>,javax.enterprise.inject.spi.BeanAttributes<T>,javax.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 Tcreate(javax.enterprise.context.spi.CreationalContext<T> creationalContext)voiddestroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)Tget(javax.enterprise.context.spi.CreationalContext<T> creationalContext)Class<?>getBeanClass()StringgetIdentifier()The identifier is generated by the container and is unique for a specific deployment.Set<Annotation>getInterceptorBindings()intgetPriority()A bean may have a priority assigned.Set<Annotation>getQualifiers()Class<? extends Annotation>getScope()Set<Type>getTypes()Objectintercept(javax.enterprise.inject.spi.InterceptionType type, T instance, javax.interceptor.InvocationContext ctx)booleanintercepts(javax.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, getInjectionPoints, getName, getStereotypes, isAlternative, isDefaultBean, isNullable, 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:InjectableBeanThe identifier is generated by the container and is unique for a specific deployment.- Specified by:
getIdentifierin interfaceInjectableBean<T>- Returns:
- the identifier for this bean
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScopein interfacejavax.enterprise.inject.spi.BeanAttributes<T>- Specified by:
getScopein interfaceInjectableBean<T>- Returns:
- the scope
-
getTypes
public Set<Type> getTypes()
- Specified by:
getTypesin interfacejavax.enterprise.inject.spi.BeanAttributes<T>- Specified by:
getTypesin interfaceInjectableBean<T>- Returns:
- the set of bean types
-
getQualifiers
public Set<Annotation> getQualifiers()
- Specified by:
getQualifiersin interfacejavax.enterprise.inject.spi.BeanAttributes<T>- Specified by:
getQualifiersin interfaceInjectableBean<T>- Returns:
- the set of qualifiers
-
create
public T create(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Specified by:
createin interfacejavax.enterprise.context.spi.Contextual<T>
-
destroy
public void destroy(T instance, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Specified by:
destroyin interfacejavax.enterprise.context.spi.Contextual<T>- Specified by:
destroyin interfaceInjectableBean<T>
-
get
public T get(javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Specified by:
getin interfaceInjectableReferenceProvider<T>- Returns:
- a contextual reference
-
getInterceptorBindings
public Set<Annotation> getInterceptorBindings()
- Specified by:
getInterceptorBindingsin interfacejavax.enterprise.inject.spi.Interceptor<T>
-
intercepts
public boolean intercepts(javax.enterprise.inject.spi.InterceptionType type)
- Specified by:
interceptsin interfacejavax.enterprise.inject.spi.Interceptor<T>
-
intercept
public Object intercept(javax.enterprise.inject.spi.InterceptionType type, T instance, javax.interceptor.InvocationContext ctx) throws Exception
-
getPriority
public int getPriority()
Description copied from interface:InjectableBeanA bean may have a priority assigned.Class-based beans can specify the priority declaratively via
PriorityandPriority. 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
Instanceor when injecting a list of beans by means of theAllqualifier.- Specified by:
getPriorityin interfaceInjectableBean<T>- Returns:
- the priority
- See Also:
Priority
-
-