Package com.github.jpmsilva.jsystemd
Class SystemdApplicationContextStatusProvider
java.lang.Object
com.github.jpmsilva.jsystemd.SystemdApplicationContextStatusProvider
- All Implemented Interfaces:
SystemdStatusProvider,org.springframework.beans.factory.config.BeanPostProcessor
@Order(-4000)
public class SystemdApplicationContextStatusProvider
extends Object
implements SystemdStatusProvider, org.springframework.beans.factory.config.BeanPostProcessor
Implementation of
SystemdStatusProvider that provides information regarding the bean creation progress of a bean factory.- Author:
- Joao Silva
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectpostProcessAfterInitialization(@NotNull Object bean, @NotNull String beanName) @Nullable ObjectpostProcessBeforeInitialization(@NotNull Object bean, @NotNull String beanName) @NotNull Stringstatus()Exposes status information to send to systemd.
-
Method Details
-
status
Description copied from interface:SystemdStatusProviderExposes status information to send to systemd.- Specified by:
statusin interfaceSystemdStatusProvider- 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:
postProcessBeforeInitializationin 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:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-