Package com.github.jpmsilva.jsystemd
Class SystemdNotifyApplicationContextStatusProvider
java.lang.Object
com.github.jpmsilva.jsystemd.SystemdNotifyApplicationContextStatusProvider
- All Implemented Interfaces:
SystemdNotifyStatusProvider
,org.springframework.beans.factory.config.BeanPostProcessor
@Order(-4000) public class SystemdNotifyApplicationContextStatusProvider extends Object implements SystemdNotifyStatusProvider, org.springframework.beans.factory.config.BeanPostProcessor
Implementation of
SystemdNotifyStatusProvider
that provides information regarding the bean creation progress of a bean factory.- Author:
- Joao Silva
- See Also:
BeanPostProcessor
-
Method Summary
Modifier and Type Method Description @Nullable Object
postProcessAfterInitialization(@NotNull Object bean, @NotNull String beanName)
@Nullable Object
postProcessBeforeInitialization(@NotNull Object bean, @NotNull String beanName)
@NotNull String
status()
Exposes status information to send to systemd.
-
Method Details
-
status
Exposes status information to send to systemd.- Specified by:
status
in interfaceSystemdNotifyStatusProvider
- Returns:
- the string message to add to the service status
-
postProcessBeforeInitialization
@Nullable public @Nullable Object postProcessBeforeInitialization(@NotNull @NotNull Object bean, @NotNull @NotNull String beanName) throws org.springframework.beans.BeansException- Specified by:
postProcessBeforeInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-
postProcessAfterInitialization
@Nullable public @Nullable Object postProcessAfterInitialization(@NotNull @NotNull Object bean, @NotNull @NotNull String beanName) throws org.springframework.beans.BeansException- Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-