Adobe® Flash® Platform için ActionScript® 3.0 Başvurusu
Ana Sayfa  |  Paket ve Sınıf Listesini Gizle |  Paketler  |  Sınıflar  |  Yenilikler  |  Dizin  |  Ekler  |  Niçin İngilizce?
Filtreler: Sunucudan Veri Alınıyor...
Sunucudan Veri Alınıyor...
com.adobe.gravity.framework 

IBundleContext  - AS3 ADEP Client Component

Paketcom.adobe.gravity.framework
Arabirimpublic interface IBundleContext extends IEventDispatcher

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

The IBundleContext interface is the main point of access to all bundle framework functionality. The IBundleContext for a particular bundle is passed into the IBundleActivator for that bundle, if the bundle implementes that interface, or it can be accessed using BundleContext.currentContext.



Genel Özellikler
 ÖzellikTanımlayan:
  bundle : IBundle
[salt okunur] Retrieve the current bundle.
IBundleContext
  properties : Object
[salt okunur] The properties (read-only) for the given bundle.
IBundleContext
Genel Yöntemler
 YöntemTanımlayan:
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder.
IEventDispatcher
  
Create a filter object from the given filter objects.
IBundleContext
  
Create a filter object from the given filter objects.
IBundleContext
  
Create a filter object that inverts the sense of provided filter (if the provided filter returns true, the returned filter would return false, and vice-versa).
IBundleContext
 Inherited
Olay akışına bir olay gönderir.
IEventDispatcher
  
Retrieve all defined bundles.
IBundleContext
  
Get the bundle with the specified id.
IBundleContext
  
Get the service object for the specified service reference.
IBundleContext
  
Get a service reference for a service.
IBundleContext
  
getServiceReferences(clazz:Class, filter:IFilter = null):Array
Get all service references of the given class matching the specified filter.
IBundleContext
 Inherited
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder.
IEventDispatcher
  
installBundlesFromURL(bundleManifestLocation:String, allowCodeImport:Boolean = false, autoStart:Boolean = true):com.adobe.gravity.utility.async:IToken
Install all bundles in the specified bundle manifest.
IBundleContext
  
installBundlesFromXML(bundleManifest:XML, allowCodeImport:Boolean = false, autoStart:Boolean = true, baseUrl:String = null):com.adobe.gravity.utility.async:IToken
Install all bundles in the specified bundle manifest.
IBundleContext
  
Register a service object implementing the given classes.
IBundleContext
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
EventDispatcher nesnesinden bir dinleyiciyi kaldırır.
IEventDispatcher
  
Release a service retrieved by getService.
IBundleContext
 Inherited
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder.
IEventDispatcher
Olaylar
 Olay Özet Tanımlayan:
  Dispatched when a bundle has been installed.IBundleContext
  Dispatched when a bundle is has been resolved.IBundleContext
  Dispatched when a bundle is about to be resolved.IBundleContext
  Dispatched when a bundle has been started.IBundleContext
  Dispatched when a bundle is about to be started.IBundleContext
  Dispatched when a bundle has been stopped.IBundleContext
  Dispatched when a bundle is about to be stopped.IBundleContext
  Dispatched when a bundle has been uninstalled.IBundleContext
  Dispatched when a bundle is about to be uninstalled.IBundleContext
  Dispatched when a bundle has been updated.IBundleContext
  Dispatched when a bundle is about to be updated.IBundleContext
  Dispatched when the properties of a service have been modified.IBundleContext
  Dispatched when a service has been registered.IBundleContext
  Dispatched when a service is going to be unregistered.IBundleContext
Özellik Ayrıntısı

bundle

özellik
bundle:IBundle  [salt okunur]

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Retrieve the current bundle.



Uygulama
    public function get bundle():IBundle

properties

özellik 
properties:Object  [salt okunur]

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

The properties (read-only) for the given bundle.



Uygulama
    public function get properties():Object
Yöntem Ayrıntısı

createFilter

()yöntem
public function createFilter(... filters):IFilter

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Create a filter object from the given filter objects. The filter will match only when all given filters match. A SyntaxError will be thrown if a filter specified as a String or XML is not a valid filter. TBD: multiple examples are desperately needed here, because this is terribly opaque.

Parametreler

... filters — One or more filter objects. A filter is either an implementation of IFilter, a String, XML, or an Object.

Döndürür
IFilter — An IFilter instance that will perform the specified filtering.

createFilterMatchAny

()yöntem 
public function createFilterMatchAny(... filters):IFilter

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Create a filter object from the given filter objects. The filter will match when one or more of the given filters match. A SyntaxError will be thrown if a filter specified as a String or XML is not a valid filter. TBD: multiple examples are desperately needed here, because this is terribly opaque.

Parametreler

... filters — One or more filter objects. A filter is either an implementation of IFilter, a String, XML, or an Object.

Döndürür
IFilter — An IFilter instance that will perform the specified filtering.

createFilterMatchInverse

()yöntem 
public function createFilterMatchInverse(filter:IFilter):IFilter

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Create a filter object that inverts the sense of provided filter (if the provided filter returns true, the returned filter would return false, and vice-versa). TBD: examples are needed here.

Parametreler

filter:IFilter — The filter to invert.

Döndürür
IFilter — An IFilter instance that will match if and only if the provided filter does not match.

getAllBundles

()yöntem 
public function getAllBundles():Array

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Retrieve all defined bundles.

Döndürür
Array — An Array of IBundle instances.

getBundle

()yöntem 
public function getBundle(id:int):IBundle

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Get the bundle with the specified id.

Parametreler

id:int — The identifier for the desired bundle.

Döndürür
IBundle — The requested bundle.

getService

()yöntem 
public function getService(reference:IServiceReference):com.adobe.gravity.utility.async:IToken

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Get the service object for the specified service reference. This method is asynchronous; you must add a success and fault handlers to the returned IToken to retrieve the requested service or deal with any errors that occurred during service retrieval.

NOTE: A bundle may register a single service object under multiple classes. This means that in some implementations it may be possible to cast a returned service object to one of the other classes or interfaces implemented by that service object if you happen to know what those classes or interfaces are for that particular bundle. This is NOT a supported use-case, and some implementations may explicitly prevent this by injecting a proxy. If multiple interfaces should be visible on a single service object, an aggregating interface that extends all the desired interfaces should be created and the service object should be requested by that aggregating interface.

         public function getSomeService():void
         {
             var context:IBundleContext = BundleContext.currentContext;
             var reference:IServiceReference = context.getServiceReference(IFancyService);
             if (reference == null)
                 throw new NoSuchServiceError();
             var token:IToken = context.getService(reference);
             token.addSuccessHandler(doSomethingWithTheFancyService);
             token.addFailureHandler(doSomethingToIndicateAProblem);
         }
         
         public function doSomethingWithTheFancyService(service:IFancyService):void
         {
             service.doFancyOperation();
         }
         
         public function doSomethingToIndicateAProblem(error:Error):void
         {
         // deal with the error here
         }
         

Parametreler

reference:IServiceReference — An IServiceReference for the desired service. The getServiceReference functions can be used to retrieve a service reference.

Döndürür
com.adobe.gravity.utility.async:IToken — A token used to set success and failure handlers to be called when the operation has completed. If the service retrieval is successful, the service object will be passed into the result handler. In other words, the result handler should take a single object of the service interface type.

getServiceReference

()yöntem 
public function getServiceReference(clazz:Class):IServiceReference

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Get a service reference for a service. If there is more than one service for the specified class, the service with the highest ranking will be returned. If there are multiple services with the highest rank, the service that was registered first will be returned. If there are no services for the specified class, null is returned.

Parametreler

clazz:Class — The service class.

Döndürür
IServiceReference — The service reference for the (first) service implementing the given service class, or null if there is no such service.

getServiceReferences

()yöntem 
public function getServiceReferences(clazz:Class, filter:IFilter = null):Array

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Get all service references of the given class matching the specified filter.

Parametreler

clazz:Class — The service class.
 
filter:IFilter (default = null) — A filter to restrict the services returned. The filter may be null, in which case all services implementing the given contract are returned.

Döndürür
Array — An array of IServiceReference objects for all the services implementing the given service contract and matching the filter.

installBundlesFromURL

()yöntem 
public function installBundlesFromURL(bundleManifestLocation:String, allowCodeImport:Boolean = false, autoStart:Boolean = true):com.adobe.gravity.utility.async:IToken

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Install all bundles in the specified bundle manifest.

Parametreler

bundleManifestLocation:String — The location of the bundle manifest.
 
allowCodeImport:Boolean (default = false) — Allow cross-domain loading of any SWF files in the specified manifest.
 
autoStart:Boolean (default = true) — Start the bundles in the manifest.

Döndürür
com.adobe.gravity.utility.async:IToken — A token used to set success and failure handlers to be called when the operation has completed. If the manifest load was successful, an Array containing a set of IBundle objects for the bundles from the manifest file will be passed into the result handler.

installBundlesFromXML

()yöntem 
public function installBundlesFromXML(bundleManifest:XML, allowCodeImport:Boolean = false, autoStart:Boolean = true, baseUrl:String = null):com.adobe.gravity.utility.async:IToken

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Install all bundles in the specified bundle manifest.

Parametreler

bundleManifest:XML — The bundle manifest XML.
 
allowCodeImport:Boolean (default = false) — Allow cross-domain loading of any SWF files in the specified manifest.
 
autoStart:Boolean (default = true) — Start the bundles in the manifest.
 
baseUrl:String (default = null) — The base URL for relative URL.

Döndürür
com.adobe.gravity.utility.async:IToken — A token used to set success and failure handlers to be called when the operation has completed. If the manifest load was successful, an Array containing a set of IBundle objects for the bundles from the manifest file will be passed into the result handler.

registerService

()yöntem 
public function registerService(classes:Array, service:Object, properties:Object):IServiceRegistration

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Register a service object implementing the given classes.

NOTE: A bundle may register a single service object under multiple classes. This means that in some implementations it may be possible to cast a returned service object to one of the other classes or interfaces implemented by that service object if you happen to know what those classes or interfaces are for that particular bundle. This is NOT a supported use-case, and some implementations may explicitly prevent this by injecting a proxy. If multiple interfaces should be visible on a single service object, an aggregating interface that extends all the desired interfaces should be created and the service object should be requested by that aggregating interface.

Parametreler

classes:Array — An array of Class objects indicating the classes implemented by the service.
 
service:Object — Either the service object itself, or an implementation of IServiceFactory. If the object is not an IServiceFactory and is not an instance of all the classes in the classes array, an exception (TODO: specify which exception) will be thrown.
 
properties:Object — Name-value metadata for the service, can be used as criteria in filters when selecting a service.

Döndürür
IServiceRegistration — An IServiceRegistration that can be used to manage the service.

İlgili API Öğeleri

ungetService

()yöntem 
public function ungetService(reference:IServiceReference):Boolean

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Release a service retrieved by getService.

Parametreler

reference:IServiceReference — The service reference for the service to be released.

Döndürür
Boolean — If the bundle's usage count for the service was already zero, false is returned. Otherwise, true is returned.
Olay Ayrıntısı

bundleInstalled

Olay
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_INSTALLED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle has been installed.

A bundle has been installed.

bundleResolved

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_RESOLVED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle is has been resolved.

A bundle has been resolved.

bundleResolving

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_RESOLVING

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle is about to be resolved.

A bundle is about to be resolved.

bundleStarted

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_STARTED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle has been started.

A bundle has been started.

bundleStarting

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_STARTING

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle is about to be started.

A bundle is about to be started.

bundleStopped

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_STOPPED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle has been stopped.

A bundle has been stopped.

bundleStopping

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_STOPPING

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle is about to be stopped.

A bundle is about to be stopped.

bundleUninstalled

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_UNINSTALLED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle has been uninstalled.

A bundle has been uninstalled.

bundleUninstalling

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_UNINSTALLING

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle is about to be uninstalled.

A bundle is about to be uninstalled.

bundleUpdated

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_UPDATED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle has been updated.

A bundle has been updated.

bundleUpdating

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.BundleEvent
özellik BundleEvent.type = com.adobe.gravity.framework.BundleEvent.BUNDLE_UPDATING

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a bundle is about to be updated.

A bundle is about to be updated.

serviceModified

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.ServiceEvent
özellik ServiceEvent.type = com.adobe.gravity.framework.ServiceEvent.SERVICE_MODIFIED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when the properties of a service have been modified.

The serviceModified event type indicates that the properties of the service have been modified.

serviceRegistered

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.ServiceEvent
özellik ServiceEvent.type = com.adobe.gravity.framework.ServiceEvent.SERVICE_REGISTERED

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a service has been registered.

The serviceRegistered event type indicates that the service has been registered.

serviceUnregistering

Olay  
Olay Nesne Türü: com.adobe.gravity.framework.ServiceEvent
özellik ServiceEvent.type = com.adobe.gravity.framework.ServiceEvent.SERVICE_UNREGISTERING

Dil Sürümü: ActionScript 3.0
Ürün Sürümü: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Çalışma Zamanı Sürümleri: AIR 1.1, Flash Player 9

Dispatched when a service is going to be unregistered.

The serviceUnregistering event type indicates that the service is in the process of being unregistered.




[ X ]Niçin İngilizce?
ActionScript 3.0 Başvurusu'ndaki içerik İngilizce görünür

ActionScript 3.0 Başvurusu'nun tüm bölümleri tüm dillere çevrilmemiştir. Bir dil öğesi çevrilmediğinde İngilizce görünür. Örneğin, ga.controls.HelpBox sınıfı hiçbir dile çevrilmez. Bu nedenle, başvurunun Türkçe versiyonunda ga.controls.HelpBox sınıfı İngilizce görünür.