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 RestClientExtension()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidclearBeanManager()Deprecated.this method is not supported and will eventually be deletedstatic Objectconstruct(Class<?> clazz)Deprecated.this method is not supported and will eventually be deletedvoidcreateProxy(jakarta.enterprise.inject.spi.AfterBeanDiscovery afterBeanDiscovery, jakarta.enterprise.inject.spi.BeanManager beanManager)Map<Class<?>,Type>getSessionBeanInterface()static booleanisCDIActive()Deprecated.this method is not supported and will eventually be deleted<T> voidobserveSessionBeans(jakarta.enterprise.inject.spi.ProcessSessionBean<T> event)Observes ProcessSessionBean events and creates a (Bean class -> Local interface) map for Session beans with local interfaces.voidregisterRestClient(jakarta.enterprise.inject.spi.ProcessAnnotatedType<?> type)voidreportErrors(jakarta.enterprise.inject.spi.AfterDeploymentValidation afterDeploymentValidation)
-
-
-
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
-
isCDIActive
@Deprecated public static boolean isCDIActive()
Deprecated.this method is not supported and will eventually be deleted- Returns:
trueif CDI is believed to be activated, otherwisefalse
-
clearBeanManager
@Deprecated public static void clearBeanManager()
Deprecated.this method is not supported and will eventually be deletedThis method currently does nothing.
-
construct
@Deprecated public static Object construct(Class<?> clazz)
Deprecated.this method is not supported and will eventually be deletedLifted from CdiConstructorInjector in resteasy-cdi
-
-