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 Summary
ConstructorsModifierConstructorDescriptionprotectedResteasyBeanPostProcessor(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.resteasy.spi.PropertyInjectorgetInjector(Class<?> clazz) voidpostProcessAfterInitialization(Object bean, String beanName) This method is invoked after postProcessBeanFactory.postProcessBeforeInitialization(Object bean, String beanName)
-
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:
postProcessBeforeInitializationin interfaceorg.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:
- RESTEasy injection of singleton @Providers, as well as @Provider registration
- 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
- merges the
ResteasyDeploymentbean with the user deployment
- Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Parameters:
bean- beanbeanName- bean name- Throws:
org.springframework.beans.BeansException- See Also:
-
getInjector
-
inject
-