1# AbilityStageContext 2 3The **AbilityStageContext** module, inherited from [Context](js-apis-inner-application-context.md), implements the context of an ability stage. 4 5This module provides APIs for accessing a specific ability stage. You can use the APIs to obtain the **ModuleInfo** object and environment configuration of an ability stage. 6 7> **NOTE** 8> 9> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. 10> The APIs of this module can be used only in the stage model. 11 12## Usage 13 14The ability stage context is obtained through an **AbilityStage** instance. 15 16```ts 17import AbilityStage from '@ohos.application.AbilityStage'; 18class MyAbilityStage extends AbilityStage { 19 onCreate() { 20 let abilityStageContext = this.context; 21 } 22} 23``` 24 25## Attributes 26 27**System capability**: SystemCapability.Ability.AbilityRuntime.Core 28 29| Name| Type| Readable| Writable| Description| 30| -------- | -------- | -------- | -------- | -------- | 31| currentHapModuleInfo | [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) | Yes| No| **ModuleInfo** object corresponding to the **AbilityStage**.| 32| config | [Configuration](js-apis-app-ability-configuration.md) | Yes| No| Configuration for the environment where the application is running.| 33