Package io.sentry.spring
Class SentryInitBeanPostProcessor
java.lang.Object
io.sentry.spring.SentryInitBeanPostProcessor
- All Implemented Interfaces:
Aware
,BeanPostProcessor
,DisposableBean
,ApplicationContextAware
public class SentryInitBeanPostProcessor
extends Object
implements BeanPostProcessor, ApplicationContextAware, DisposableBean
Initializes Sentry after all beans are registered. Closes Sentry on Spring application context
destroy.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
@NotNull Object
postProcessAfterInitialization
(@NotNull Object bean, @NotNull String beanName) void
setApplicationContext
(@NotNull ApplicationContext applicationContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
SentryInitBeanPostProcessor
public SentryInitBeanPostProcessor()
-
-
Method Details
-
postProcessAfterInitialization
@NotNull public @NotNull Object postProcessAfterInitialization(@NotNull @NotNull Object bean, @NotNull @NotNull String beanName) throws BeansException - Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-
setApplicationContext
public void setApplicationContext(@NotNull @NotNull ApplicationContext applicationContext) throws BeansException - Specified by:
setApplicationContext
in interfaceApplicationContextAware
- Throws:
BeansException
-
destroy
public void destroy()- Specified by:
destroy
in interfaceDisposableBean
-