Paket | com.adobe.gravity.tracker |
Klass | public class ServiceTracker |
Arv | ServiceTracker EventDispatcher Object |
Implementerar | IServiceTrackerCustomizer |
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
service : Object [skrivskyddad]
The highest-ranked service that matches the tracking criteria. | ServiceTracker | ||
services : Array [skrivskyddad]
The set of services that are being tracked, in ranking order. | ServiceTracker | ||
size : uint [skrivskyddad]
The number of services that currently match the tracking criteria. | ServiceTracker | ||
trackingCount : uint [skrivskyddad]
A number that increments every time the set of tracked services changes. | ServiceTracker |
Egenskap | Definieras med | ||
---|---|---|---|
context : IBundleContext [skrivskyddad]
The bundle context for this tracker. | ServiceTracker | ||
filter : IFilter [skrivskyddad]
The service filter that this tracker is using, if any. | ServiceTracker |
Metod | Definieras med | ||
---|---|---|---|
ServiceTracker(context:IBundleContext, serviceInterface:Class, filter:IFilter = null, customizer:com.adobe.gravity.tracker:IServiceTrackerCustomizer = null)
Constructor. | ServiceTracker | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Called when a new service appears that is to be tracked. | ServiceTracker | ||
Stop tracking services. | ServiceTracker | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Called when service properties are modified. | ServiceTracker | ||
Start tracking services. | ServiceTracker | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Called when a service is no longer to be tracked. | ServiceTracker | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
context | egenskap |
context:IBundleContext
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
The bundle context for this tracker.
Implementering
protected function get context():IBundleContext
filter | egenskap |
filter:IFilter
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
The service filter that this tracker is using, if any.
Implementering
protected function get filter():IFilter
service | egenskap |
service:Object
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
The highest-ranked service that matches the tracking criteria.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen serviceChanged
.
Implementering
public function get service():Object
services | egenskap |
services:Array
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
The set of services that are being tracked, in ranking order.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen servicesChanged
.
Implementering
public function get services():Array
size | egenskap |
size:uint
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
The number of services that currently match the tracking criteria.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen sizeChanged
.
Implementering
public function get size():uint
trackingCount | egenskap |
trackingCount:uint
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
A number that increments every time the set of tracked services changes. Can be used to check whether there have been changes to the set of tracked services.
Den här egenskapen kan användas som källan för databindning. När den här egenskapen ändras, skickas händelsen trackingCountChanged
.
Implementering
public function get trackingCount():uint
ServiceTracker | () | Konstruktor |
public function ServiceTracker(context:IBundleContext, serviceInterface:Class, filter:IFilter = null, customizer:com.adobe.gravity.tracker:IServiceTrackerCustomizer = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Constructor.
Parametrarcontext:IBundleContext — A bundle context for performing service operations.
| |
serviceInterface:Class — The interface for the services to be tracked.
| |
filter:IFilter (default = null ) — An optional filter to constrain the set of tracked services.
| |
customizer:com.adobe.gravity.tracker:IServiceTrackerCustomizer (default = null ) — An IServiceTrackerCustomizer with which to customize the behaviour of this tracker.
|
addingService | () | metod |
public function addingService(reference:IServiceReference):com.adobe.gravity.utility.async:IToken
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Called when a new service appears that is to be tracked. Note that implementations of this method must retrieve the service object from the service registry. The simplest implementation would be
public function addingService(reference:IServiceReference):IToken { return BundleContext.currentContext.getService(reference); }
Parametrar
reference:IServiceReference — The reference for the new service.
|
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 must be called with the object to be returned by the tracker as the service object.
|
close | () | metod |
public function close():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Stop tracking services.
modifiedService | () | metod |
public function modifiedService(reference:IServiceReference, service:Object):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Called when service properties are modified.
Parametrar
reference:IServiceReference — The reference for the service.
| |
service:Object — The service object.
|
open | () | metod |
public function open():com.adobe.gravity.utility.async:IToken
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Start tracking services.
Returnerarcom.adobe.gravity.utility.async:IToken — A token used to set success and failure handlers to be called when the operation has completed. Success handlers will be called with no parameters.
|
removedService | () | metod |
public function removedService(reference:IServiceReference, service:Object):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Körningsmiljöversioner: | AIR 1.1, Flash Player 9 |
Called when a service is no longer to be tracked. Note that implementations must release the service object from the service registry. The simplest implementation would be
public function removedService(reference:IServiceReference, service:Object):void { BundleContext.currentContext.ungetService(reference); }
Parametrar
reference:IServiceReference | |
service:Object |
Tue Jun 12 2018, 01:40 PM Z