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
  • Method Details

    • 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 interface InjectableBean<T>
      Returns:
      the identifier for this bean
    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      Specified by:
      getScope in interface InjectableBean<T>
      Returns:
      the scope
    • getTypes

      public Set<Type> getTypes()
      Specified by:
      getTypes in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      Specified by:
      getTypes in interface InjectableBean<T>
      Returns:
      the set of bean types
    • getQualifiers

      public Set<Annotation> getQualifiers()
      Specified by:
      getQualifiers in interface jakarta.enterprise.inject.spi.BeanAttributes<T>
      Specified by:
      getQualifiers in interface InjectableBean<T>
      Returns:
      the set of qualifiers
    • create

      public T create(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      create in interface jakarta.enterprise.context.spi.Contextual<T>
    • destroy

      public void destroy(T instance, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      destroy in interface jakarta.enterprise.context.spi.Contextual<T>
      Specified by:
      destroy in interface InjectableBean<T>
    • get

      public T get(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext)
      Specified by:
      get in interface InjectableReferenceProvider<T>
      Returns:
      a contextual reference
    • getInterceptorBindings

      public Set<Annotation> getInterceptorBindings()
      Specified by:
      getInterceptorBindings in interface jakarta.enterprise.inject.spi.Interceptor<T>
    • intercepts

      public boolean intercepts(jakarta.enterprise.inject.spi.InterceptionType type)
      Specified by:
      intercepts in interface jakarta.enterprise.inject.spi.Interceptor<T>
    • intercept

      public Object intercept(jakarta.enterprise.inject.spi.InterceptionType type, T instance, jakarta.interceptor.InvocationContext ctx) throws Exception
      Specified by:
      intercept in interface jakarta.enterprise.inject.spi.Interceptor<T>
      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 the All qualifier.

      Specified by:
      getPriority in interface InjectableBean<T>
      Returns:
      the priority
      See Also:
      • Priority
    • getBeanClass

      public Class<?> getBeanClass()
      Specified by:
      getBeanClass in interface jakarta.enterprise.inject.spi.Bean<T>