Package io.sentry.spring
Class SentryInitBeanPostProcessor
- java.lang.Object
-
- io.sentry.spring.SentryInitBeanPostProcessor
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.config.BeanPostProcessor
,org.springframework.beans.factory.DisposableBean
,org.springframework.context.ApplicationContextAware
public class SentryInitBeanPostProcessor extends java.lang.Object implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean
Initializes Sentry after all beans are registered. Closes Sentry on Spring application context destroy.
-
-
Constructor Summary
Constructors Constructor Description SentryInitBeanPostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
@NotNull java.lang.Object
postProcessAfterInitialization(@NotNull java.lang.Object bean, @NotNull java.lang.String beanName)
void
setApplicationContext(@NotNull org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
postProcessAfterInitialization
@NotNull public @NotNull java.lang.Object postProcessAfterInitialization(@NotNull @NotNull java.lang.Object bean, @NotNull @NotNull java.lang.String beanName) throws org.springframework.beans.BeansException
- Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-
setApplicationContext
public void setApplicationContext(@NotNull @NotNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.springframework.beans.factory.DisposableBean
-
-