Class SpringBeanProcessor.ResteasyBeanPostProcessor

java.lang.Object
org.jboss.resteasy.plugins.spring.SpringBeanProcessor.ResteasyBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
Enclosing class:
SpringBeanProcessor

protected class SpringBeanProcessor.ResteasyBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
  • Constructor Details

    • ResteasyBeanPostProcessor

      protected ResteasyBeanPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
  • Method Details

    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      This method is invoked after postProcessBeanFactory.

      this method is invoked when ever a new bean is created. This will perform the following:

      1. RESTEasy injection of singleton @Providers, as well as @Provider registration
      2. either singleton or request/prototype RESTeasy injection... but not registration. The RESTEasy registration happens in the onApplicationEvent() below, which happens at the end of the Spring life-cycle
      3. merges the ResteasyDeployment bean with the user deployment
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Parameters:
      bean - bean
      beanName - bean name
      Throws:
      org.springframework.beans.BeansException
      See Also:
    • getInjector

      public org.jboss.resteasy.spi.PropertyInjector getInjector(Class<?> clazz)
    • inject

      public void inject(String beanName, Object bean, org.jboss.resteasy.spi.PropertyInjector propertyInjector)