public class OnTenantStartupProcessor extends AbstractEventListener<AfterInitializationEndEvent>
AfterInitializationEndEvents. It is responsible for
handling tenant activation of rules modules after the current tenant has been (re)started and initialized. It is
possible to disable this mechanism for specific tenants by providing a set of tenant ids to be excluded (see
getExcludedTenants().| Constructor and Description |
|---|
OnTenantStartupProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateRulesModules() |
protected ConfigurationService |
getConfigurationService() |
protected Set<String> |
getExcludedTenants()
returns a set of tenant IDs for which rules modules will not be activated.
|
protected RuleEngineService |
getPlatformRuleEngineService() |
protected boolean |
ignoreTenant()
checks if the current tenantID is part of the ignored tenants as configured via
getExcludedTenants(). |
protected void |
init() |
boolean |
isSystemInitialized() |
protected void |
onEvent(AfterInitializationEndEvent event)
This method is called by
AbstractEventListener#onApplicationEvent(ApplicationEvent) and processes the
given event. |
protected void |
processAfterInitializationEnd()
The method is called after the tenant has been initialized.
|
protected void |
processOnTenantStartup()
The method is called on Tenant startup.
|
void |
setConfigurationService(ConfigurationService configurationService) |
void |
setExcludedTenants(Set<String> excludedTenants) |
void |
setPlatformRuleEngineService(RuleEngineService platformRuleEngineService) |
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantServiceprotected void processOnTenantStartup()
protected void processAfterInitializationEnd()
protected void activateRulesModules()
@PostConstruct protected void init()
public boolean isSystemInitialized()
protected void onEvent(AfterInitializationEndEvent event)
AbstractEventListenerAbstractEventListener#onApplicationEvent(ApplicationEvent) and processes the
given event.onEvent in class AbstractEventListener<AfterInitializationEndEvent>event - the event to be processed#onApplicationEvent(ApplicationEvent)protected boolean ignoreTenant()
getExcludedTenants().protected RuleEngineService getPlatformRuleEngineService()
public void setPlatformRuleEngineService(RuleEngineService platformRuleEngineService)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
protected Set<String> getExcludedTenants()
Copyright © 2017 SAP SE. All Rights Reserved.