套件 | com.adobe.mosaic.mxml |
類別 | public class Service |
繼承 | Service EventDispatcher Object |
實作 | IMXMLObject |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
serviceNode
property.
相關 API 元素
com.adobe.mosaic.om.interfaces.IShell
com.adobe.mosaic.mxml.ServerSession
com.adobe.mosaic.mxml.Application
com.adobe.mosaic.mxml.Catalog
屬性 | 定義自 | ||
---|---|---|---|
catalog : Catalog
The Service's composite application catalog component. | Service | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
library : String
The value of the library name. | Service | ||
loaded : Boolean [唯讀]
Checks if the underlying IService is instantiated. | Service | ||
name : String
The name of the Experience Service. | Service | ||
serviceNode : IService [唯讀]
The underlying Composite Application Framework SDK IService. | Service | ||
shell : IShell
The associated IShell that the Service belongs to. | Service |
方法 | 定義自 | ||
---|---|---|---|
Service()
Constructor. | Service | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
Implementation of IMXMLObject initialized. | Service | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
Makes a request to load the Service by the value
of the name property from the associated Catalog, and then
attempts to add the service to the associated IShell. | Service | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
事件 | 摘要 | 定義自 | ||
---|---|---|---|---|
[廣播事件] 當 Flash Player 或 AIR 應用程式取得作業系統焦點並成為作用中時傳送。 | EventDispatcher | |||
The addServiceEventFailure defines a failure notification of an attempt to load a Service. | Service | |||
The addServiceEventSuccess defines a successful notification of loading a Service. | Service | |||
[廣播事件] 當 Flash Player 或 AIR 應用程式失去作業系統焦點並成為非作用中時傳送。 | EventDispatcher |
catalog | 屬性 |
catalog:Catalog
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
The Service's composite application catalog component.
實作
public function get catalog():Catalog
public function set catalog(value:Catalog):void
相關 API 元素
library | 屬性 |
loaded | 屬性 |
name | 屬性 |
serviceNode | 屬性 |
shell | 屬性 |
shell:IShell
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
The associated IShell that the Service belongs to.
實作
public function get shell():IShell
public function set shell(value:IShell):void
相關 API 元素
Service | () | 建構函式 |
public function Service()
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Constructor.
initialized | () | 方法 |
public function initialized(document:Object, id:String):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Implementation of IMXMLObject initialized.
參數
document:Object — The document
| |
id:String — The mxml id
|
loadService | () | 方法 |
public function loadService():void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
Makes a request to load the Service by the value of the name property from the associated Catalog, and then attempts to add the service to the associated IShell. Both Catalog and Shell are required, and if either one is missing a log message will be generated. If the state of the catalog is either CatalogConstants.STATE_UNINITIALIZED or not CatalogConstants.STATE_LOADED, an event listener is added to listen for a CatalogLoadEvent.SUCCESS, at which time the catalog is considered loaded and a call to loadService() is triggered then.
addServiceEventFailure | 事件 |
com.adobe.mosaic.om.events.AddServiceEvent
屬性 AddServiceEvent.type =
com.adobe.mosaic.om.events.AddServiceEvent.FAILURE
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
The addServiceEventFailure defines a failure notification of an attempt to load a Service.
addServiceEventSuccess | 事件 |
com.adobe.mosaic.om.events.AddServiceEvent
屬性 AddServiceEvent.type =
com.adobe.mosaic.om.events.AddServiceEvent.SUCCESS
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
執行階段版本: | AIR 2.6, Flash Player 10.2 |
The addServiceEventSuccess defines a successful notification of loading a Service.
<fx:Declarations> <mosaic:ServerSession id="myServer" openSessionEventSuccess="myServer_connectedHandler(event)" openSessionEventFailure="myServer_faultHandler(event)" url="{_serverUrl}" /> <mosaic:Application id="myApp" loadApplicationEventSuccess="myApp_loadApplicationEventSuccessHandler(event)" loadApplicationEventFailure="myApp_loadApplicationEventFailureHandler(event)"> <mosaic:catalogs> <mosaic:Catalog id="sampleCatalog" name="sample_catalog" catalogLoadEventSuccess="myCatalogSuccess(event)" catalogLoadEventFailure="myCatalogFail(event)" serverSession="{myServer}"/> </mosaic:catalogs> </mosaic:Application> <mosaic:Service id="myService" catalog="{sampleCatalog}" shell="{myApp.shell}" library="MyDataService-Weather" name="WeatherService"/> </fx:Declarations>
Tue Jun 12 2018, 03:47 PM Z