Class SystemdApplicationContextStatusProvider
java.lang.Object
com.github.jpmsilva.jsystemd.SystemdApplicationContextStatusProvider
- All Implemented Interfaces:
SystemdStatusProvider, BeanPostProcessor
@Order(-4000)
public class SystemdApplicationContextStatusProvider
extends Object
implements SystemdStatusProvider, 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(@NonNull Object bean, @NonNull String beanName) @Nullable ObjectpostProcessBeforeInitialization(@NonNull Object bean, @NonNull String beanName) @NonNull 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
public @Nullable Object postProcessBeforeInitialization(@NonNull Object bean, @NonNull String beanName) throws BeansException - Specified by:
postProcessBeforeInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-
postProcessAfterInitialization
public @Nullable Object postProcessAfterInitialization(@NonNull Object bean, @NonNull String beanName) throws BeansException - Specified by:
postProcessAfterInitializationin interfaceBeanPostProcessor- Throws:
BeansException
-