com.adobe.gravity.service.bundleloader

# IBundleLoaderContext - AS3 ADEP Client Component

Package | com.adobe.gravity.service.bundleloader
Interface | public interface IBundleLoaderContext

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

Context object for bundle loaders.

Public Properties

| Property | Defined By
--- | --- | ---
|  | activator : IBundleActivator The bundle activator for this bundle. | IBundleLoaderContext
|  | allowCodeImport : Boolean [read-only] Whether the bundle should be import loaded if it naturally belongs in another SecurityDomain. | IBundleLoaderContext
|  | applicationDomain : ApplicationDomain [read-only] The ApplicationDomain for the bundle being loaded. | IBundleLoaderContext
|  | baseURL : String [read-only] The base URL on which to compute absolute paths for relative URLs. | IBundleLoaderContext
|  | bundleContext : IBundleContext [read-only] The bundle context for the bundle being loaded. | IBundleLoaderContext

Public Methods

| Method | Defined By
--- | --- | ---
|  | finishLoad(suppressDefaultLoader:Boolean):com.adobe.gravity.utility.async:IToken Ask the framework to finish the load of the bundle, running any subsequent bundle loaders and then the bundle activator. | IBundleLoaderContext
|  | performInjection():com.adobe.gravity.utility.async:IToken Ask the framework to attempt injection of any injectable services. | IBundleLoaderContext

Property Detail

### activator

property

`activator:IBundleActivator`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

The bundle activator for this bundle.

Implementation
`public function get activator():IBundleActivator`
`public function set activator(value:IBundleActivator):void`

### allowCodeImport

property

`allowCodeImport:Boolean` [read-only]

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

Whether the bundle should be import loaded if it naturally belongs in another SecurityDomain.

Implementation
`public function get allowCodeImport():Boolean`

### applicationDomain

property

`applicationDomain:ApplicationDomain` [read-only]

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

The ApplicationDomain for the bundle being loaded.

Implementation
`public function get applicationDomain():ApplicationDomain`

### baseURL

property

`baseURL:String` [read-only]

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

The base URL on which to compute absolute paths for relative URLs.

Implementation
`public function get baseURL():String`

### bundleContext

property

`bundleContext:IBundleContext` [read-only]

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

The bundle context for the bundle being loaded.

Implementation
`public function get bundleContext():IBundleContext`
Method Detail

### finishLoad

()
method

`public function finishLoad(suppressDefaultLoader:Boolean):com.adobe.gravity.utility.async:IToken`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

Ask the framework to finish the load of the bundle, running any subsequent bundle loaders and then the bundle activator.

Parameters

| `suppressDefaultLoader:Boolean` — Suppress the implicit default loader that loads the bundle SWF with a Loader; set to true if this bundle loader has already loaded the bundle SWF.

Returns

| `com.adobe.gravity.utility.async:IToken` — A token used to set success and failure handlers to be called when the operation has completed. The success handler will be called with no parameters.

### performInjection

()
method

`public function performInjection():com.adobe.gravity.utility.async:IToken`

Language Version: | ActionScript 3.0

Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10

Runtime Versions: | AIR 1.1, Flash Player 9

Ask the framework to attempt injection of any injectable services. Note that the framework will do this automatically after each bundle loader; this only needs to be called if you want injection to happen in the middle of your bundle loader's operations. This will make the framework attempt to inject the bundle's IBundleContext into com.adobe.gravity.context.BundleContext.currentContext and perform any other registered injections. It is not a failure if any injection can't be performed (as it would if, for example, the bundle doesn't contain com.adobe.gravity.context.BundleContext). Injectable classes MUST NOT exist shared bundles; an error will be returned if injectable classes are found in a shared bundle.

Returns

| `com.adobe.gravity.utility.async:IToken` — A token used to set success and failure handlers to be called when the operation has completed. The success handler will be called with no parameters.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00