Class RestClientExtension

java.lang.Object
org.jboss.resteasy.microprofile.client.RestClientExtension
All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension

public class RestClientExtension extends Object implements jakarta.enterprise.inject.spi.Extension
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Deprecated.
    this method is not supported and will eventually be deleted
    static Object
    construct(Class<?> clazz)
    Deprecated.
    this method is not supported and will eventually be deleted
    void
    createProxy(jakarta.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
     
     
    static boolean
    Deprecated.
    this method is not supported and will eventually be deleted
    <T> void
    observeSessionBeans(jakarta.enterprise.inject.spi.ProcessSessionBean<T> event)
    Observes ProcessSessionBean events and creates a (Bean class -> Local interface) map for Session beans with local interfaces.
    void
    registerRestClient(jakarta.enterprise.inject.spi.ProcessAnnotatedType<?> type)
     
    void
    reportErrors(jakarta.enterprise.inject.spi.AfterDeploymentValidation afterDeploymentValidation)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestClientExtension

      public RestClientExtension()
  • Method Details

    • registerRestClient

      public void registerRestClient(@Observes jakarta.enterprise.inject.spi.ProcessAnnotatedType<?> type)
    • createProxy

      public void createProxy(@Observes jakarta.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)
    • reportErrors

      public void reportErrors(@Observes jakarta.enterprise.inject.spi.AfterDeploymentValidation afterDeploymentValidation)
    • observeSessionBeans

      public <T> void observeSessionBeans(@Observes jakarta.enterprise.inject.spi.ProcessSessionBean<T> event)
      Observes ProcessSessionBean events and creates a (Bean class -> Local interface) map for Session beans with local interfaces. This map is necessary since RESTEasy identifies a bean class as JAX-RS components while CDI requires a local interface to be used for lookup.
      Parameters:
      event - event the process session bean event
    • getSessionBeanInterface

      public Map<Class<?>,Type> getSessionBeanInterface()
    • isCDIActive

      @Deprecated public static boolean isCDIActive()
      Deprecated.
      this method is not supported and will eventually be deleted
      Returns:
      true if CDI is believed to be activated, otherwise false
    • clearBeanManager

      @Deprecated public static void clearBeanManager()
      Deprecated.
      this method is not supported and will eventually be deleted
      This method currently does nothing.
    • construct

      @Deprecated public static Object construct(Class<?> clazz)
      Deprecated.
      this method is not supported and will eventually be deleted
      Lifted from CdiConstructorInjector in resteasy-cdi