Class RestClientExtension

  • All Implemented Interfaces:
    jakarta.enterprise.inject.spi.Extension

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

      • RestClientExtension

        public RestClientExtension()
    • Method Detail

      • 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