Class StateService

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyListener

public final class StateService extends AbstractService
Tracks StateAware beans in the system and generates events when StateAware beans change.
Version:
2023-10-07
  • Method Details

    • register

      public void register(StateBean bean)
      Manually register a bean with the service. This will prepare the bean for use with the service and include it in the list of known state beans that can be queried. This does not need to be called if the bean is added via autowiring in the BeanContext . If this is called for a bean that was autowired it will have no effect as the bean has already been registered.
      Parameters:
      bean - the bean to register
    • unregister

      public void unregister(StateBean bean)
      Unregister a bean with the service. This will remove the bean from the list of registered beans an will prevent the bean from being broadcast in the future. Unregistering a bean will remove it from the service regardless of how it was registered.
      Parameters:
      bean - the bean to unregister