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 Summary
ConstructorsConstructorDescriptionDefaultIntegrationTenantLifecycle(@NotNull Tenant tenant) Instantiates the TenantLifecycle object for the given tenant -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSetActivateSession(Tenant tenant) voidafterTenantStartUp(Tenant tenant) Will be called if a tenant has successfully started.voidbeforeTenantShutDown(Tenant tenant) Will be called if a tenant is about to shut down.voidbeforeUnsetActivateSession(Tenant tenant) booleanbooleanIndicates whether the tenant is at the operational state, i.e.protected voidonEvent(AbstractEvent event) This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
DefaultIntegrationTenantLifecycle
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:TenantLifecycleIndicates whether the tenant is at the operational state, i.e. tenant is not initializing, starting up, nor shutting down- Specified by:
isOperationalin interfaceTenantLifecycle- Returns:
trueif tenant is at the operational state, elsefalse
-
afterTenantStartUp
Description copied from interface:TenantListenerWill be called if a tenant has successfully started.- Specified by:
afterTenantStartUpin interfaceTenantListener- Parameters:
tenant- the tenant which was started
-
beforeTenantShutDown
Description copied from interface:TenantListenerWill be called if a tenant is about to shut down.- Specified by:
beforeTenantShutDownin interfaceTenantListener- Parameters:
tenant- tenant which will be shut down
-
afterSetActivateSession
- Specified by:
afterSetActivateSessionin interfaceTenantListener
-
beforeUnsetActivateSession
- Specified by:
beforeUnsetActivateSessionin interfaceTenantListener
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AbstractEvent>- Parameters:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
hasTenant
-