Package com.sap.cds.services.mt.impl
Class MtDeploymentServiceHandler
java.lang.Object
com.sap.cds.services.mt.impl.MtDeploymentServiceHandler
- All Implemented Interfaces:
com.sap.cds.services.handler.EventHandler
public class MtDeploymentServiceHandler
extends Object
implements com.sap.cds.services.handler.EventHandler
The default handler for subscription events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final ThreadLocal<com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptions>Thread local used to pass the instance manager options to the mt libprotected final SubscriberThe subscriber that performs the actual tenant onboarding -
Constructor Summary
ConstructorsConstructorDescriptionMtDeploymentServiceHandler(InstanceLifecycleManager instanceLifecycleManager, com.sap.cds.services.runtime.CdsRuntime runtime) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeSubscribe(com.sap.cds.services.mt.SubscribeEventContext context) protected com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptionsbuildInstanceCreationOptions(com.sap.cds.services.mt.SubscribeEventContext context) protected voidonSubscribe(com.sap.cds.services.mt.SubscribeEventContext context) protected voidonUnsubscribe(com.sap.cds.services.mt.UnsubscribeEventContext context) protected voidonUpgrade(com.sap.cds.services.mt.UpgradeEventContext context)
-
Field Details
-
ALL_TENANTS
- See Also:
-
subscriber
The subscriber that performs the actual tenant onboarding -
options
protected final ThreadLocal<com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptions> optionsThread local used to pass the instance manager options to the mt lib
-
-
Constructor Details
-
MtDeploymentServiceHandler
public MtDeploymentServiceHandler(InstanceLifecycleManager instanceLifecycleManager, com.sap.cds.services.runtime.CdsRuntime runtime)
-
-
Method Details
-
onSubscribe
@HandlerOrder(-9900) protected void onSubscribe(com.sap.cds.services.mt.SubscribeEventContext context) -
onUnsubscribe
protected void onUnsubscribe(com.sap.cds.services.mt.UnsubscribeEventContext context) -
onUpgrade
@HandlerOrder(-9900) protected void onUpgrade(com.sap.cds.services.mt.UpgradeEventContext context) -
beforeSubscribe
protected void beforeSubscribe(com.sap.cds.services.mt.SubscribeEventContext context) -
buildInstanceCreationOptions
protected com.sap.cds.services.utils.lib.tools.api.InstanceCreationOptions buildInstanceCreationOptions(com.sap.cds.services.mt.SubscribeEventContext context)
-