Package | com.adobe.mosaic.mxml |
Class | public class Service |
Inheritance | Service EventDispatcher Object |
Implements | IMXMLObject |
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
serviceNode
property.
Related API Elements
com.adobe.mosaic.om.interfaces.IShell
com.adobe.mosaic.mxml.ServerSession
com.adobe.mosaic.mxml.Application
com.adobe.mosaic.mxml.Catalog
Property | Defined By | ||
---|---|---|---|
catalog : Catalog
The Service's composite application catalog component. | Service | ||
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
library : String
The value of the library name. | Service | ||
loaded : Boolean [read-only]
Checks if the underlying IService is instantiated. | Service | ||
name : String
The name of the Experience Service. | Service | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | ||
serviceNode : IService [read-only]
The underlying Composite Application Framework SDK IService. | Service | ||
shell : IShell
The associated IShell that the Service belongs to. | Service |
Method | Defined By | ||
---|---|---|---|
Service()
Constructor. | Service | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
Indicates whether an object has a specified property defined. | Object | ||
Implementation of IMXMLObject initialized. | Service | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | 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 | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Event | Summary | Defined By | ||
---|---|---|---|---|
[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | 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 | |||
[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive. | EventDispatcher |
catalog | property |
catalog:Catalog
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
The Service's composite application catalog component.
Implementation
public function get catalog():Catalog
public function set catalog(value:Catalog):void
Related API Elements
library | property |
library:String
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
The value of the library name.
Implementation
public function get library():String
public function set library(value:String):void
loaded | property |
loaded:Boolean
[read-only] Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
Checks if the underlying IService is instantiated.
Implementation
public function get loaded():Boolean
name | property |
name:String
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
The name of the Experience Service.
Implementation
public function get name():String
public function set name(value:String):void
serviceNode | property |
serviceNode:IService
[read-only] Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
The underlying Composite Application Framework SDK IService.
Implementation
public function get serviceNode():IService
Related API Elements
shell | property |
shell:IShell
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
The associated IShell that the Service belongs to.
Implementation
public function get shell():IShell
public function set shell(value:IShell):void
Related API Elements
Service | () | Constructor |
public function Service()
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
Constructor.
initialized | () | method |
public function initialized(document:Object, id:String):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
Implementation of IMXMLObject initialized.
Parameters
document:Object — The document
| |
id:String — The mxml id
|
loadService | () | method |
public function loadService():void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | 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 | Event |
com.adobe.mosaic.om.events.AddServiceEvent
property AddServiceEvent.type =
com.adobe.mosaic.om.events.AddServiceEvent.FAILURE
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | AIR 2.6, Flash Player 10.2 |
The addServiceEventFailure defines a failure notification of an attempt to load a Service.
addServiceEventSuccess | Event |
com.adobe.mosaic.om.events.AddServiceEvent
property AddServiceEvent.type =
com.adobe.mosaic.om.events.AddServiceEvent.SUCCESS
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Composite Application Framework 10 |
Runtime Versions: | 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>
Mon Nov 28 2011, 06:48 AM -08:00