包 | 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, 11:04 AM Z