Class DefaultIntegrationTenantLifecycle

java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
de.hybris.platform.integrationservices.util.lifecycle.impl.DefaultIntegrationTenantLifecycle
All Implemented Interfaces:
TenantListener, TenantLifecycle, EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<AbstractEvent>
Direct Known Subclasses:
DefaultTenantLifecycle

public class DefaultIntegrationTenantLifecycle extends AbstractEventListener<AbstractEvent> implements TenantLifecycle, TenantListener
Default implementation of the TenantLifecycle
  • Constructor Details

    • DefaultIntegrationTenantLifecycle

      public DefaultIntegrationTenantLifecycle(@NotNull @NotNull Tenant tenant)
      Instantiates the TenantLifecycle object for the given tenant
      Parameters:
      tenant - Tenant this lifecycle object is running under
  • Method Details

    • isOperational

      public boolean isOperational()
      Description copied from interface: TenantLifecycle
      Indicates whether the tenant is at the operational state, i.e. tenant is not initializing, starting up, nor shutting down
      Specified by:
      isOperational in interface TenantLifecycle
      Returns:
      true if tenant is at the operational state, else false
    • afterTenantStartUp

      public void afterTenantStartUp(Tenant tenant)
      Description copied from interface: TenantListener
      Will be called if a tenant has successfully started.
      Specified by:
      afterTenantStartUp in interface TenantListener
      Parameters:
      tenant - the tenant which was started
    • beforeTenantShutDown

      public void beforeTenantShutDown(Tenant tenant)
      Description copied from interface: TenantListener
      Will be called if a tenant is about to shut down.
      Specified by:
      beforeTenantShutDown in interface TenantListener
      Parameters:
      tenant - tenant which will be shut down
    • afterSetActivateSession

      public void afterSetActivateSession(Tenant tenant)
      Specified by:
      afterSetActivateSession in interface TenantListener
    • beforeUnsetActivateSession

      public void beforeUnsetActivateSession(Tenant tenant)
      Specified by:
      beforeUnsetActivateSession in interface TenantListener
    • onEvent

      protected void onEvent(AbstractEvent event)
      Description copied from class: AbstractEventListener
      This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
      Specified by:
      onEvent in class AbstractEventListener<AbstractEvent>
      Parameters:
      event - the event to be processed
      See Also:
      • ApplicationListener.onApplicationEvent(ApplicationEvent)
    • hasTenant

      public boolean hasTenant(Tenant tenant)